笨办法 (bèn bàn fǎ) – “stupid way”/”hard way” (learning method)
学 (xué) – learn/study
第3版 (dì sān bǎn) – 3rd edition
习题1 第一个程序
习题1 第一个程序
习题 (xí tí) – exercise/problem
第一个 (dì yī gè) – the first
程序 (chéng xù) – program
p 36 你应该在习题0上花了不少的时间,
你 (nǐ) – you
应该 (yīng gāi) – should/ought to
在 (zài) – on/at
习题 (xí tí) – exercise/problem
上 (shàng) – on/upon
花了 (huā le) – spent (past tense)
不少的 (bù shǎo de) – quite a bit of/considerable
时间 (shí jiān) – time
学会了如何安装文本编辑器,
学会了 (xué huì le) – learned/mastered (completed action)
如何 (rú hé) – how to
安装 (ān zhuāng) – install
文本 (wén běn) – text
编辑器 (biān jí qì) – editor
运行文本编辑器,以及如何运行终端。
运行 (yùn xíng) – run/execute
文本 (wén běn) – text
编辑器 (biān jí qì) – editor
以及 (yǐ jí) – as well as/and
如何 (rú hé) – how to
运行 (yùn xíng) – run/execute
终端 (zhōng duān) – terminal
如果你还没有完成这些练
如果 (rú guǒ) – if
你 (nǐ) – you
还没有 (hái méi yǒu) – still haven’t/not yet
完成 (wán chéng) – completed/finished
这些 (zhè xiē) – these
练 (liàn) – practice/exercise (appears to be cut off)
习,请不要继续往下进行了,否则你不会觉得很好过的。写在习题开
头警告你不要跳过前面内容的警示本书中仅此一次,切记切记。
将下面的内容写到一个文件中,取名为ex1.py。这种命名方式很重
要,Python文件最好以.py结尾。
如果你使用的是Mac OSX下的TextWrangler,那么你的文本编辑器大
致是图1-1所示的这个样子。
