python 使用#进行单行注释,使用 ''' 或 """ 进行多行注释
数值计算
>>> print one hour has, 60 * 60 , seconds one hour has 3600 seconds>>> result = 12 # 同一行代码利用空格分段使格式更清晰>>> print result12
字符串
python 中使用 或 '' 表示字符串,习惯上单个单词使用 '' 一句话使用
>>> print 'here is python'here is python>>> print here is python,toohere is python,too
如果在文本中使用了非ascii编码的字符,可以在python脚本的开有上加入 # -*- coding: utf-8 -*-
