注釋和井號“#”
- 輸入:
# -- 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."
-
運(yùn)行:
附加題
- 1/弄清楚”#”號的作用,并且記住它的名字嬉荆。(中文為井號,英文為 octothorpe 或者 pound character)型型。