#coding=utf-8
#整型
# int 表示整数 二进制 0b 0B 八进制 0 或者 0o 十进制 十六进制 0X
#整型 和系统的最大整型 一致的 32 位计算机 上的整型 是 32位的 负数 2 的31次方 到 正的2的31次方 减一
#64位计算机 -2的63次方到 正的2的63次方
a= 0b0001
b=0b1101
print type(a)
print type(b)
print a
print b
print oct(a)
print oct(b)
print hex(a)
print hex(b)
#浮点型 表示 实数 小数 float 或者 e 计数法
# 浮点数占位 8个字节 遵循ieee 754 双精度标准 -1.8的308次方 到 1.8 的308次方
c = 3.14e4
print c
d=1.8e308
print d
f = 1.8e307
print f
e =-1.8e308
print e
e =-1.8e307
print e
#布尔类型
# None False 0 0L 0.0 0.0 +0.0j "" [] {} () 这十个的布尔值都是都是 flase
#复数 必须要有虚部的实数和j 如果虚部的实数是1 也不能不写 如1j 或者 -1j
a =1+2j
print a
print a.real
print a.imag
#数据类型转换 整型 浮点型 复数等
print int(1.02)
print float(1)
#创建复数 complex
print complex(3.1,2.8)