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
本文标题:元组
本文链接:https://www.haomeiwen.com/subject/rhtdtqtx.html
网友评论