Crossin的编程教室
标题:
TypeError: 'tuple' object does not support item assignment
[打印本页]
作者:
cheyinyou
时间:
2018-8-9 22:01
标题:
TypeError: 'tuple' object does not support item assignment
scores[s[0]] = [s[1:]]
TypeError: 'tuple' object does not support item assignment
2018-8-9 21:57 上传
下载附件
(3.1 KB)
请问这个问题如何处理呢?这是py3的
作者:
crossin先生
时间:
2018-8-10 13:02
scores = {}
是字典不是小括号
欢迎光临 Crossin的编程教室 (https://bbs.crossincode.com/)
Powered by Discuz! X2.5