python 查看数据类型

# 整型
a = 250

print(a, type(a))


# 浮点
b = 3.14
print(b, type(b))

# 科学计数法
c = 3.1415926e-3
print(c, type(c))

# 复数:了解
d = 2 + 3j
print(d, type(d))

 

# 布尔
a = True
b = False

print(a, type(a))
print(b, type(b))

c = None
print(c, type(c))

 

posted @ 2018-12-17 13:30  青春叛逆者  阅读(294)  评论(0编辑  收藏  举报