(一)注释规范
1.单行注释
在代码行开头使用#
#print('hello world!!')
2.多行注释
使用三个单引号或三个双引号(ps:python中,无单引号和双引号之分)
'''
print('hello')
print('world')
'''
"""
print('hello')
print('world')
"""
(二)代码缩进
使用Tab键或者空格键
(三)编码规范
1.import只能导入一个模块
2.每行代码不超过80个字符
3.不以分号结尾
4.python中一定要区分大小写!!
(四)输入输出
1.输入:input()
age=input('请输入你的年龄:')
print('你的年龄是:'+age)
2.输出:print()
print('今年是2021年')