1. 程式人生 > >Python 註釋,多行註釋(塊註釋)

Python 註釋,多行註釋(塊註釋)

學習筆記:https://pan.baidu.com/s/1PQKjl9t-b4XxR-2wstugEA   密碼:tamx

 

demo.py:

# 這是一個單行註釋。一般在#後加一個空格(格式化)
print("hello hello")

"""
這是一個多行註釋 (三個單引號或雙引號)
。。。。
多行註釋結束了
"""

print("hello world")  # 建議在程式碼後面加至少兩個空格,再寫註釋