跳到主要内容
学院
初级 代码街区

编程基础

从第一行代码开始,像程序员一样思考。

Never written a line of code? Start here. This track teaches the ideas behind every programming language: values and variables, decisions, loops, functions, lists and dictionaries, and how to break a problem into steps and fix your own bugs.

You write real Python 3.14 from the very first lesson and see how the same ideas look in JavaScript. Every lesson is short and packed with quizzes, so you learn by doing.

课时
24
时长
3 小时
级别
初级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Read and write short Python programs with confidence
  • Store and work with data using variables, lists and dictionaries
  • Control a program with conditions and loops
  • Split a problem into small, reusable functions
  • Read error messages and debug your own code
  • Build a working leaderboard from scratch

学习旅程

  1. 1
    第 1 单元

    What programming is

    How computers follow instructions, what a programming language is, and your first Python program.

    0 / 3
  2. 2
    第 2 单元

    Values and variables

    Numbers, text and true or false, stored in variables and shown with f-strings.

    0 / 4
  3. 3
    第 3 单元

    Decisions

    Compare values and choose what happens next with if, elif and else.

    0 / 3
  4. 4
    第 4 单元

    Repetition

    Let the computer do the boring part with while and for loops.

    0 / 4
  5. 5
    第 5 单元

    Functions

    Package steps into reusable functions that take inputs and return results.

    0 / 3
  6. 6
    第 6 单元

    Collections

    Keep many values together in lists and dictionaries, and loop over them.

    0 / 3
  7. 7
    第 7 单元

    Thinking like a programmer

    Break problems down, plan in pseudocode, fix bugs and build a leaderboard.

    0 / 4

快速导航