为什么python shell会出现这种情况的? 作者:蓝调发表于2009-11-27 16:04:23
在写着写着就出现这种情况:
>>> sheis=dict((['x',1],['y',5]))
Traceback (most recent call last):
File "", line 1, in
sheis=dict((['x',1],['y',5]))
TypeError: 'dict' object is not callable
把它复制新打开一个:
IDLE 2.6.2
>>> sheis=dict((['x',1],['y',5]))
>>> sheis
{'y': 5, 'x': 1} 什么回事?
xieaotian回复于2009-11-29 21:34:24
是同一个编辑器的结果么
回复主题
