第一個List names = ["A", "B", "C"] # 第二個List values = [11, 23, 46] # 使用zip 同時迭代兩個List for x, y in zip(names, values): print(x, y).
確定! 回上一頁