二、注释和井号
输入:
# 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 aldo use a comment to "disable" or comment out a piece if code :
# print("This won't work")
print('This will run')
结果:
I could have code like this.
This will run
注释的作用(井号的作用):
说明代码
临时禁用代码