#给多个变量赋值data=['alex',84,[1900,3,38]]name,age,birth=dataprint(name)print(age)print(birth)#msg='hello'a,b,c,d,e=msgprint(a,b,c,d,e)
msg='hello'a,_,_,_,b=msgprint(a)print(b)#只给第一个和最后一个变量赋值a,*_,b=msgprint(a,b)