如何将arry转换成list
要将arry转换成list,可以使用list()函数将其转换。
例如:
arr = (1, 2, 3, 4, 5) lst = list(arr) print(lst)
输出结果为:[1, 2, 3, 4, 5]
原文地址: https://www.cveoy.top/t/topic/hXyz 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
要将arry转换成list,可以使用list()函数将其转换。
例如:
arr = (1, 2, 3, 4, 5) lst = list(arr) print(lst)
输出结果为:[1, 2, 3, 4, 5]
原文地址: https://www.cveoy.top/t/topic/hXyz 著作权归作者所有。请勿转载和采集!