for循环还可以这样?

千白莫

关注

阅读 87

2022-06-21

l1 = [1,2,3]
l2 = (4, 5, 6)
for i in l1, l2:
print(i)

[1, 2, 3]
(4, 5, 6)


相关推荐

精彩评论(0)

0 0 举报