Learn Python The Hard Way(2)

   注释在程序开发中非常重要,它可以描述程序实现什么功能,同时还可以屏蔽不需要的代码

#!/usr/bin/python
# -*- coding: utf-8 -*-

# A comment, 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."

                                       


你可能感兴趣的:(Learn Python The Hard Way(2))