python-入门-1
2020-04-13 本文已影响0人
巴巴11
print("hello world") // python3中,print是一个函数
print "hello world" // python2中,print是一个语句
是乘方运算
62 = 36
^ 是位运算符,XOR
值和类型
type(2)
<class 'int'>
type(42.0)
<class 'float'>
type('hello world')
<class 'str'>
序列
1,000,000 = (1,0,0)