foods = ['bacon', 'tuna', 'ham', 'snausages', 'beef']
for f in foods:
print(f)
print(len(f))
for f in foods[:2]:
print(f)
print(len(f))
foods = ['bacon', 'tuna', 'ham', 'snausages', 'beef']
for f in foods:
print(f)
print(len(f))
for f in foods[:2]:
print(f)
print(len(f))
本文标题:Python 8 Programming Tutorial -
本文链接:https://www.haomeiwen.com/subject/dvaxettx.html
网友评论