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)

輸出結果:

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM