我用的是Python3,我有一个用Python2编写的程序,我用2to3命令转换成Python3。在
运行代码后发生错误:
AttributeError: module 'tkinter' has no attribute 'tkinter'
Traceback (most recent call last):
File "pacman.py", line 679, in <module>
args = readCommand( sys.argv[1:] ) # Get game components based on input
File "pacman.py", line 567, in readCommand
import graphicsDisplay
File "graphicsDisplay.py", line 15, in <module>
from graphicsUtils import *
File "graphicsUtils.py", line 294, in <module>
def keys_pressed(d_o_e=tkinter.tkinter.dooneevent,
AttributeError: module 'tkinter' has no attribute 'tkinter'
目前没有回答
相关问题 更多 >
编程相关推荐