# 1. 算术运算
print(10 / 3)
print(10 // 3)
print(10 ** 2)
# 2. 赋值运算
# 增量赋值
age=18
age+=1#age=age + 1
print(age)
age=18
age/=3 #age=age/3
print(type(age))
age**=2 #age=age**2
# 交叉赋值
x=10
y=20
temp=x
x=y
y=temp
x,y=y,x
print(x,y)
# 链式赋值
x=10
y=x
z=y
x=y=z=10
print(id(x))
print(id(y))
print(id(z))
# 解压赋值
l=[1.2,2.2,3.3,4.4,5.5]
a=l[0]
b=l[1]
c=l[2]
d=l[3]
e=l[4]
a,b,c,d,e=l
a,b,c,d,e,f=l
a,b,c,d=l
print(a,b,c,d,e)
l=[1.2,2.2,3.3,4.4,5.5]
a,b,*_=l
print(a,b)
a,*_,b=l
print(a,b)
*_,a,b=l
print(a,b)