Skip to content

← Learn to Code — Python, Java, C, SQL & Web · ⁨编程入门 — Python, Java, C, SQL & Web⁩

Python Basics · ⁨Python 基础⁩

Your very first steps in programming — no experience needed. · ⁨编程的第一步 —— 无需任何基础。⁩

python 22 Lessons · ⁨课程⁩

Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with translated notes paired with English. · ⁨每节课均在浏览器中运行——编写真实代码,点击运行,任务自动检查。免费,无需账户,配有与英文对照的翻译笔记。⁩

Start the course · ⁨开始课程⁩

Lessons in this course · ⁨本课程中的课程⁩

  1. 00 Run it! · ⁨运行起来!⁩ 3 required tasks · ⁨3 个必做任务⁩
  2. 01 Your first program · ⁨你的第一个程序⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  3. 02 Variables · ⁨变量⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  4. 03 Numbers & operators · ⁨数字与运算符⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  5. 04 Getting input · ⁨获取输入⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  6. 05 Working with strings · ⁨处理字符串⁩ 4 required tasks · ⁨4 个必做任务⁩ Video · ⁨视频⁩
  7. P1 Project: Mad Libs · ⁨项目:填词故事⁩ Project · ⁨项目⁩
  8. 06 Making decisions · ⁨做出判断⁩ 4 required tasks · ⁨4 个必做任务⁩ Video · ⁨视频⁩
  9. 07 Counting loops · ⁨计数循环⁩ 4 required tasks · ⁨4 个必做任务⁩ Video · ⁨视频⁩
  10. 08 While loops · ⁨while 循环⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  11. P2 Project: Guess the number · ⁨项目:猜数字⁩ Project · ⁨项目⁩
  12. 09 Lists (1-D arrays) · ⁨列表(一维数组)⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  13. P3 Project: Quiz with a score · ⁨项目:带分数的小测验⁩ Project · ⁨项目⁩
  14. 10 Functions · ⁨函数⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  15. P4 Project: Rock, paper, scissors · ⁨项目:石头剪刀布⁩ Project · ⁨项目⁩
  16. 11 Scope & arguments · ⁨作用域与参数⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  17. 12 Dictionaries (records) · ⁨字典(记录)⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  18. P5 Project: Text adventure · ⁨项目:文字冒险游戏⁩ Project · ⁨项目⁩
  19. 13 Planning & pseudocode · ⁨规划与伪代码⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  20. 14 Errors & testing · ⁨错误与测试⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  21. 15 Putting it all together · ⁨把所有内容综合起来⁩ 3 required tasks · ⁨3 个必做任务⁩ Video · ⁨视频⁩
  22. P6 Project: Hangman · ⁨项目:猜单词(Hangman)⁩ Project · ⁨项目⁩
  23. history A short history of Python · ⁨Python 简史⁩ Reading and resources · ⁨阅读与资源⁩
  24. usage What Python is used for · ⁨Python 用来做什么⁩ Reading and resources · ⁨阅读与资源⁩
  25. resources Where to learn more · ⁨更多学习资源⁩ Reading and resources · ⁨阅读与资源⁩
  26. setup Set up your computer · ⁨设置你的电脑⁩ Reading and resources · ⁨阅读与资源⁩

Language reference · ⁨语言参考⁩

/know/reference/python

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩