标签:
test = (‘Monday‘,‘Tuesday‘,‘Wednesday‘,‘Thursday‘,‘Friday‘,‘Saturday‘,‘Sunday‘)
#用For循环遍历列表,没有循环变量,更加简洁
for u in test: print(u)
#result:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
标签:
原文地址:http://www.cnblogs.com/redshoes/p/5360189.html