【习题2】注释和#号【第3天】

代码练习

 1 # A comment,this is so you can read your program later.
 2 # Anything after the # is ignore by python
 3 
 4 print "I could have code like this." # and the comment after is ignored
 5 
 6 #You can also use a comment to "disable" or comment out a piece of code:
 7 #print "This won't run "
 8 
 9 
10 print "This will run"

运行结果

【╮(╯_╰)╭】

补充:
关于ASCⅡ编码错误:加入下面一行代码
# -*- coding:utf-8 -8-
posted @ 2016-03-05 10:16  未名湖畔畔畔畔  阅读(111)  评论(0编辑  收藏  举报