考虑以下代码和输出
代码1:
ls = ["one is one","two is two","three is three"]
for each_item in ls:
print(each_item)
输出 1:
代码2:
ls = ["one is one","two is two","three is three"]
for each_item in ls:
for each_word in each_item:
print(each_word)
输出 2:
我的意图是打印如下
一
是
一
二
是
二
三
是
三
我需要在哪里修改以按所需顺序打印?
MYYA
狐的传说
相关分类