现在我们将做一批练习,在练习的过程中你需要输入代码,并让它们运行起来。我不会解释太多,因为这节的内容都是以前熟悉过的。这节练习的目的是巩固你学到的东西。我们几个练习后再见。不要跳过这些习题。不要复制粘贴!print "Mary had a little lamb."print "Its fleece was white as %s." % 'snow'print "And everywhere that Mary went."print ".
注释在编程中是很重要的部分。它能告诉你这段代码是干什么用的,或者用来删除一部分你暂时不需要执行的代码。下面演示的是如何在 python 中使用注释:# A comment, this is so you can read your program later.# Anything after the # is ignored by python.print "I could have code like this.