所以我明白,如果我做了以下三重報價
print """ Anything I
type in here
works. Multiple LINES woohoo!"""
但是,如果下面是我的python腳本
""" This is my python Script. Just this much """
是什麼上面的東西做什麼?它是作爲評論嗎?爲什麼它不是一個語法錯誤?
同樣,如果我做
"This is my Python Script. Just this. Even with single quotes."
如何在上述兩個腳本解釋?
感謝
實際上在docstrings中它被綁定到'func .__ doc__' – wim
是的,我錯過了。謝謝 – MadeOfAir