所以我明白如果我做以下事情
print """ Anything I
type in here
works. Multiple LINES woohoo!"""
Run Code Online (Sandbox Code Playgroud)
但如果以下是我的python脚本怎么办?
""" This is my python Script. Just this much """
Run Code Online (Sandbox Code Playgroud)
上面做了什么?它被视为评论吗?为什么不是语法错误?
同样,如果我这样做
"This is my Python Script. Just this. Even with single quotes."
Run Code Online (Sandbox Code Playgroud)
如何解释上述两个脚本?
谢谢
| 归档时间: |
|
| 查看次数: |
683 次 |
| 最近记录: |