num_list = [1, 2, 3, 4]
# 将num_list转换为元组
num_tuple = tuple(num_list)
print(type(num_tuple))
str_tuple = ("1", "2", "3")
# 将str_tuple转换为列表
str_list = list(str_tuple)
print(type(str_list))
版权声明:本文为m0_58535137原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。