主页
Python
Python For 循环
demo_for_nested
运行 ❯
×
更改方向
保存代码
更改主题
adj = ["red", "big", "tasty"] fruits = ["apple", "banana", "cherry"] for x in adj: for y in fruits: print(x, y)
red apple
red banana
red cherry
big apple
big banana
big cherry
tasty apple
tasty banana
tasty cherry