2、基本语法规范

注释

# 单行注释
'''
多行注释
'''
"""
多行注释
"""

输入与输出

>>> number = input('Please input a number: ')
Please input a number: 123
>>> number
'123'
>>> print(123, "hello", 1+1)
123 hello 2

参考资料

http://www.imooc.com/wiki/pythonlesson1/pythonnorm.html

posted @ 2022-06-15 19:49  tiansz  阅读(29)  评论(0编辑  收藏  举报