天天看點

Exercise 2: Comments And Pound Characters

Comments is used to tell people what something does, and can also disable the parts of program which you need to remove temporarily.

There are two ways to comment program:

# first comment
print "first comment"

'''multi-line 
comment'''
print "multi-line comment"
           

The character #(pound) can comment a line, and '''(triple quote) can comment multi-line.

繼續閱讀