美文网首页
笨办法学Python ex02

笨办法学Python ex02

作者: Joemini | 来源:发表于2016-12-10 14:39 被阅读0次

注释和井号“#”


  • 输入:
# -- coding: utf-8 --
# Acomment, this is so you can read your program later.
# Anything after the # is ignored by python.

print "I could have code like this." # and the comment after is ignored

# You can also use a comment to "disable" or comment out a piece of code:
# print "This won't run."
print"This will run."
  • 运行:


附加题


  • 1/弄清楚”#”号的作用,并且记住它的名字。(中文为井号,英文为 octothorpe 或者 pound character)。

相关文章

网友评论

      本文标题:笨办法学Python ex02

      本文链接:https://www.haomeiwen.com/subject/myfumttx.html