python-3.x - 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 - 逗号的那个。
解决方案
推荐阅读
- android - 自 sdk 更新以来,Google Play 控制台中的 NoClassDefFoundError ClassNotFoundException 错误
- tfs - 我们可以更改 TFS 2018 电子邮件警报的默认时区吗
- postgresql - 如何在 Fedora 30 上安装 pgAdmin 4?
- python - 检查字符串中是否只有指定的 Django 模板变量
- ms-access - MS Access 基本盘点
- c# - 如果 fiddler 代理打开,C# POSTing data to CGI script 有效,否则无效
- c# - C# Viewmodel 到模型
- node.js - 如何访问嵌套数据,这是猫鼬数组中的参考数据?
- angularjs - 如果有任何变化,AngularJS会同时重新加载多个选项卡
- ios - 如何在 iOS 中进行身份验证后显示谷歌帐户屏幕?