使用 tuple 函数把数组转换为元组-CSDN博客

网站介绍:文章浏览阅读2.9k次。可以用 tuple 换数将任意序列或者迭代器转换为元组。本页面用于测试 freepy 。tp = tuple([23, 0, 42])print(tp)输出:(23, 0, 42)