单行注释:
#comments
多行注释:
'''
comments
comments
'''
模块文档:
1 用法:模块名.__doc__
2 显示代码块的简要说明
3 任何代码块(文件|类|函数)均可以有文档说明
- 不跨行:“comments”
- 跨行:
'''
comments
comments
'''
中文注释:
在程序第一行或者第二行添加#coding:gbk或#coding:utf-8或##-*- coding : gbk -*-