Menu
CoddyTech

面向初学者的免费互动编程课

动手学编程

从第一节课起就在浏览器里写真正的代码。无需安装,无需经验,无需信用卡。只有你和编辑器。

hello.py
Output
Click Run to see the output here.

为什么要学编程?

编程可能是你现在能学到的最有用的技能,而且接下来五分钟你就能开始。

把脑子里的想法做出来

应用、网站、游戏,还有帮你自动处理繁琐事务的小工具。学会编程,就能把脑子里的想法变成可以分享的真实作品。

打开职业之门

开发岗位是薪资最高、需求最旺的工作之一。而且不只是科技行业,编程能让你在几乎任何领域都更有优势。

思路更清晰

编程训练你把一个大问题拆成一个个小步骤,再逐步推理解决。这个习惯在键盘之外同样受用。

按自己的节奏学

课程短小,进度由你掌握。无论是在公交车上学五分钟,还是晚上专心学一小时,进度都会保存,随时回来继续。

你将怎样学习

01
第一分钟就开始写代码

不用坐着看冗长的视频。从第一节课起,你就在编辑器里编写并运行真正的代码。

02
即时获得反馈

运行代码,马上看到结果。出错时,我们会给你指明修复的方向,让你不会卡太久。

03
做真实的项目

把学到的知识用在真正的程序和项目上,做出可以拿来展示、放进作品集的东西。

04
保持连胜

每天短短的课程、连胜和目标,会吸引你明天继续回来。坚持每天出现,正是让初学者成为程序员的关键。

你将获得
学编程所需的一切

Learn by Doing

Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.

playground.js
Code Editor
1const greeting = "Hello, Coddy!"
2function sayHi(name) {
3    return greeting + " " + name
4}
5
bottombar Collapse icon
Test #1test Case Success icon
Test #2test Case Success icon
Test #3test Case Failure icon
Input
"Alex"
Output
"Hello, Coddy! Alex"

Build Your Streak

Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.

12 days streak

Return tomorrow to keep your streak!

fire Filled icon
left icon

January 2026

right icon

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

21

22

23

24

25

26

27

28

29

30

product Double Or Nothing icon

Double or Nothing

Day 5 of 7

fire Freeze icon

Streak Freeze

2 left

Code Anywhere

Take your coding journey on the go! No setup, no downloads - just open and start coding. Available on iOS, Android and Web with 4.9 star ratings.

Python
7Streak
250Score
5Energy
Variables
journey Hex Done Base iconjourney Hex Done Shadow iconjourney Hex Done Top iconjourney Lesson Done icon
journey Path Right Done icon
journey Hex Done Base iconjourney Hex Done Shadow iconjourney Hex Done Top iconjourney Lesson Done icon
journey Path Left Done icon
journey Hex Active Base iconjourney Hex Active Shadow iconjourney Hex Active Top iconjourney Lesson Theory Challenge icon
CONTINUE
journey Path Right icon
journey Hex Locked Base iconjourney Hex Locked Shadow iconjourney Hex Locked Top iconjourney Lesson Theory Challenge icon
journey Path Left icon
journey Hex Locked Base iconjourney Hex Locked Shadow iconjourney Hex Locked Top iconjourney Lesson All icon
Journey
Goals
Leaderboard
Profile
4.9
StarStarStarStarStar
Rating

You're Not Alone

Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!

Challenger League
Challenger LeagueTop 7 advance
leaderboard First icon1
avatar 1 icon
fire Filled icon
Alex7+ Days
2840
leaderboard Second icon2
avatar 2 icon
fire Filled icon
Jordan7+ Days
2650
leaderboard Third icon3
avatar 3 icon
fire Filled icon
Sam7+ Days
2420
4
avatar 4 icon
Casey
2180
5
avatar placeholder icon
fire Filled icon
Morgan7+ Days
1950
leaderboard Arrow Up iconPromotion zoneleaderboard Arrow Up icon

Every way to learn

Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.

Intro to Variables
Audio

A variable is a named container that stores a value you can reference later in your program.

In Python, you create one by writing the name, an equals sign, then the value you want to store.

The value can change over time - reassigning the name simply points it to a new value.

1xSarah

Earn a Certificate

Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.

CoddyCertificate of Completion
This certifies thatJohn Doehas successfully completed
python iconPython Fundamentals
Verified
DateJan 2026
LinkedInAdd to LinkedIn

选一门语言,开始学习

不知道从哪里开始?对大多数人来说,Python 是最友好的入门语言,但下面任何一门都是不错的起点。点击一门语言,直接进入免费的互动课程。

常见问题

真的可以免费学编程吗?

可以。你可以在 Coddy 上免费开始,在浏览器里完成动手实践的课程,无需安装、无需配置,也无需信用卡。免费套餐想用多久就用多久,一直免费。

第一门编程语言应该学什么?

对大多数初学者来说,Python 是最好的起点,因为它的语法简洁,让你能专注于学会像程序员一样思考,而不是和语言本身较劲。如果你的目标是做网站,就从 HTML、CSS 和 JavaScript 开始。无论选哪个,核心思想都是相通的,所以最重要的是开始。

开始学需要有经验吗?

完全不需要。Coddy 就是为从没写过一行代码的人打造的。你从最基础的内容开始,一步一步往上学,从第一节课起就亲手写真正的代码。

学会编程需要多长时间?

几分钟之内你就能写出第一个能运行的程序。熟练掌握基础,通常需要几周的规律练习,达到能找工作的水平则需要几个月。课程短小、进度自定,所以哪怕每天只学 15 分钟,日积月累也很可观。

需要安装什么吗?

不需要。编辑器、课程和你的项目都在浏览器里运行。无需下载或配置任何东西,在任何电脑上几秒钟就能开始。

学编程难吗?

有挑战,但比大多数人想象的更容易上手。诀窍是小步动手练习,Coddy 正是这样设计的。你在实践中学习,立刻看到结果,一节短课接一节短课地积累动力。

学会编程后能做什么?

网站、Web 和移动应用、游戏、处理数据的脚本、自动完成重复工作的工具,还有很多很多。一路学下来,你会做出值得放进作品集或分享给朋友的真实项目。

Coddy 编程语言插图

和 Coddy 一起学编程

开始