代码示例:(标识:python_ref_zip_1)
python_ref_zip_1.py
a = ("Bill", "Steve", "Elon")
b = ("Gates", "Jobs", "Musk")

x = zip(a, b)

#use the tuple() function to display a readable version of the result:

print(tuple(x))
运行结果: