PyCharm社区版3.4.1运行Python 2.7.8.简单代码:
def test(x): print x d={'test': test} d['test'](5)
给
d['test'](5)
'空无法调用'
在shell中,此代码执行无错误.
python pycharm
pycharm ×1
python ×1