4399king 发表于 2020-8-11 11:17:16

作业python

mydiction=dict((('f',70),('i',105),('s',115),('h',104)('s',115)))

报错Traceback (most recent call last):
File "<pyshell#149>", line 1, in <module>
    mydiction=dict((('f',70),('i',105),('s',115),('h',104)('s',115)))
TypeError: 'tuple' object is not callable

qiuyouzhi 发表于 2020-8-11 11:17:58

粗心了,少了个逗号:
mydiction=dict((('f',70),('i',105),('s',115),('h',104),('s',115)))
页: [1]
查看完整版本: 作业python