📦
课程 2
Variables: boxes with data
📖 课程
──▶
🎯 测验——选择翻译
──▶
✅ 本课已完成
A variable is a named box. You write name = "Anna" — and the box called name holds the text "Anna". Data has types: numbers, strings, true/false.
🔢
整数: 42
🔤
字符串: "你好"
✅
布尔: 真/假
💧
小数: 3.14
📋
列表: [1,2,3]
🕳
空值: 无内容
💡 age = 16 is an assignment. age == 16 is the question "is it 16?". One = stores, two == asks!