【笨方法学python】ex2 - 注释符

代码如下:

点击查看代码
# -*-coding: utf-8 -*-
# A comment, this is so you can read your program later.
# Anything after the # is ignored by python.

# 一个注释符,便于后续的代码阅读。
# python将忽略 # 之后的任何内容。

print "I could have code like this." # and the comment after is ignored

# You can also use a comment to "disable" or comment out a piece of code:
# print "This won't run."

print "This will run."

执行结果:
image

posted @ 2022-10-05 03:36  TiramisuPS  阅读(29)  评论(0编辑  收藏  举报