您的位置: 首页 > IT文章 > tuple用法 tuple用法 分类: IT文章 • 2023-11-29 20:02:18 1 tuple中的元素可以直接赋给相同个数的变量 tup1 = ('asfa',234) p, q = tup1 print(p) print(q) # asfa # 234 View Code 参考:https://www.runoob.com/python/python-tuples.html