Python 注释,多行注释(块注释)

学习笔记:https://pan.baidu.com/s/1PQKjl9t-b4XxR-2wstugEA   密码:tamx

demo.py:

# 这是一个单行注释。一般在#后加一个空格(格式化)
print("hello hello")

"""
这是一个多行注释 (三个单引号或双引号)
。。。。
多行注释结束了
"""

print("hello world")  # 建议在代码后面加至少两个空格,再写注释

猜你喜欢

转载自blog.csdn.net/houyanhua1/article/details/83790859