首页 > 解决方案 > Python,为什么这行需要逗号?

问题描述

   u_list = input("put numbers: right now: ")
List = u_list.split(",")
t = tuple(List)
print("Tuple: ",t)
print("list: ",List)

为什么变量前需要逗号:t 变量:List?我的意思是在 t 前面有 ,t - 逗号的那个。

标签: python-3.xlisttuples

解决方案


推荐阅读