习题2 注释和#号

来源:互联网 发布:诺基亚x2 01软件下载 编辑:程序博客网 时间:2024/04/28 10:05

# A comment,this is so you can read your program later.# Anything after the # is ignored by pythonprint "I could have code like this."# and the comment after is ignored# You can also use a comment "disable" or comment out a piece of code:#print "This won't run."print "This will run."

这是Zed给出的代码,用以让人明白注释的作用


倒着阅读每行代码很有用,可以检查错误


#-*-coding:utf-8-*- 不是注释

0 0
原创粉丝点击