Day_02_Data_Structure_Note
'''
Python的数据类型
int,float,complex
str:字符串
bool:布尔类型,只有两个值:True or False
None:空值类型,只有一个值:None
List:列表/数组
tuple:元组/不可变数组
dict:字典
set:集合(了解,不需要记)
bytes:字节/二进制
'''
a = 100
print(a, type(a))
b = 10.3
print(b, type(b))
c = 'JohnLuo'
print(c, type(c))
d = True
print(d, type(d))
print(int(True), int(False))
e = None
print(e, type(e))
f = [1,2,3]
print(f, type(f))
g = (1,2,3)
print(g, type(g))
h = {"name": "Johnluo","age": 19}
print(h, type(h))
i = {1,2,3}
print(i, type(i))
j = b'hello'
print(j, type(j))