python三引号的用法

1 多行注释

print('Hello world!')
"""
这是一个
多行注释
注释,
###
"""

2 按照原格式输出文本

a = """ ###pandas features a number of 
fnctions for reading 'tabular data' as
 a DataFrame object. Such as , read_csv ...&&&;;;'''hello'''
 """
print(a)

输出结果:

 

posted @ 2018-08-12 21:35  墨丘  阅读(10180)  评论(0编辑  收藏  举报