习题2注释和#号第3天
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了习题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-
以上是关于习题2注释和#号第3天的主要内容,如果未能解决你的问题,请参考以下文章