python三引号的用法

it2022-05-09  32

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)

输出结果:

 

转载于:https://www.cnblogs.com/jiangchengzi93812/p/9464968.html


最新回复(0)