元组
2018-10-27 本文已影响13人
庵下桃花仙
foods = ('noodles', 'rice', 'dumpling', 'beef', 'egg')
print("We have:")
for food in foods:
print(food.title())
We have:
Noodles
Rice
Dumpling
Beef
Egg
foods = ('noodles', 'rice', 'dumpling', 'beef', 'egg')
print("We have:")
for food in foods:
print(food.title())
We have:
Noodles
Rice
Dumpling
Beef
Egg