Python2

来源:互联网 发布:逆波兰表达式 c语言 编辑:程序博客网 时间:2024/05/16 06:41

2 of 52
Acomment,thisissoyoucanreadyourprogramlater.Anything after the isignoredbypython.printIcouldhavecodelikethies.and the comment after is ignored
Youcanalsouseacommenttodisableorcommentoutapieceofcode:print “This won’t run.”
print “This will run.”

save to a file named ex2.py
($ is #)

note:
多行注释可以收尾各用三个连续的单引号或者双引号括起来。

0 0
原创粉丝点击