#encoding=utf-8 ##########元组的简写########## ############################ ############################ t=1234,5567,"hello" #为t=(1234,5567,"hello")的简写 print t u=t,(1,2,3) print u empty=()#空元组 #通过元组可以很简单的进行数据交换 a=1 b=2 print "a,b:",a,b a,b=b,a print "a,b:",a,b #一次赋多值 v=("a","b","c") (x,y,z)=v print x print y print z