热门话题

Php 研究室

为什么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
是同一个编辑器的结果么
回复主题
Copyright © 2008-2010 版权所属:中国Python联盟 www.okpython.com
京ICP备08012290号 村长QQ:81356625 E-mail:xieaotian@163.com