📜  列表和 for 循环 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:10.991000             🧑  作者: Mango

代码示例1
for number in range(20):
    if number % 3 == 0:
        print(number)

for fruit in ["banana", "apple", "quince"]:
    print("I like to eat " + fruit + "s!")