下面的例子中,输入和输出分别由大于号和句号提示符( 本手册中的很多示例——包括那些带有交互提示符的——都含有注释。Python 中的注释以 如下示例: # this is the first comment
spam = 1 # and this is the second comment
# ... and now a third!
text = "# This is not a comment because it's inside quotes."
|
Archiver|手机版|笨鸟自学网 ( 粤ICP备20019910号 )
GMT+8, 2024-12-6 00:53 , Processed in 0.016230 second(s), 17 queries .