python八进制:0o10表示十进制8
print("hello world!")等同于python2.6的print "hello world!"
变量名可以包括字母、数字和下划线(_)。变量不能以数字开头,所以Plan9是合法的变量名,但那是9plan不是。
使用python的round()函数时,如果两端差相等,会自动round成偶数端
导入函数三种形式
一、import math
math.sqrt(9)
二、from math import sqrt
sqrt(9)
三、import math
foo=math.sqrt
foo(9)