test = (‘Monday‘,‘Tuesday‘,‘Wednesday‘,‘Thursday‘,‘Friday‘,‘Saturday‘,‘Sunday‘)
#用For循环遍历列表,没有循环变量,更加简洁
for u in test: print(u)
#result:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
时间: 2024-12-21 19:12:30
test = (‘Monday‘,‘Tuesday‘,‘Wednesday‘,‘Thursday‘,‘Friday‘,‘Saturday‘,‘Sunday‘)
#用For循环遍历列表,没有循环变量,更加简洁
for u in test: print(u)
#result:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday