闲来无事学习下python,记录学习过程,小白一枚。
# 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 ignorde
# You can also use a comment to "disable" or comment out code:
# 你可以使用“禁用”或注释代码
# print("This won't run.") # 这个不会运行
print("This will run.")
# “#”在字符串内部,就是引号结束前的字符串的一部分,不具有注释的作用
print("Hi # there.")