python magic 函数使用教程

python magic 函数使用教程

持续更新

zip: 将参数元素打包成元组

for item in zip([1,2,3], [4,5,6]):
    print(item)

# (1, 4)
# (2, 5)
# (3, 6)

猜你喜欢

转载自blog.csdn.net/hpulfc/article/details/81112581