注释

Comments — CodeSkulptor

  • Non-computational parts of the program that textually describe the behavior of the program.(注释的作用是对程序的描述,不会对程序计算起到任何作用)
  • Comments begin with #, everything to right of the hash is ignored by Python.(注释以# 开头,# 右边的所有代码都会被python忽略)
  • Comments should be frequent so you and others can understand the code. (注释非常常用,他能帮助你自己或者别人理解代码)
  • Lecture examples - CodeSkulptor
  • More examples - Comments, Strings, and Print
posted @ 2013-10-07 17:26  不喝啤酒的小啤酒  阅读(157)  评论(0编辑  收藏  举报