python注释

1、单行注释

符号:#

# a = 10
2、多行注释

符号:三个单引号或三个双引号

"""
交换a,b的值
"""
a = 10
b = 20
a, b = b, a
print(a, b)     # 20 10
'''
exchange a and b value
'''
a = 10
b = 20
a, b = b, a
print(a, b)     # 20 10
posted @ 2019-04-21 10:22  市丸银  阅读(201)  评论(0编辑  收藏  举报