python

元组

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
上一篇下一篇

猜你喜欢

热点阅读