我想为Python IDLE获得水平滚动,并且导致我下载idlex 1.13。解压会开得不错,但我不能够运行idlex.py 每次我尝试,我得到一个消息是这样的: Unable to located "idlexlib".
Make sure it is located in the same directory as "idlexlib" or run setup.py
to install
我有一个脚本,我试图在终端中运行,但它的一部分在IDLE中完美工作,并且在运行时没有任何解释在终端。我发现的大多数关于类似问题的帖子似乎来自使用Python 2的终端和使用Python 3的IDLE,但是我的脚本在IDLE中为Python 2和3编写了大多数脚本运行良好,但调用此函数会终止它。 import random
import time
def gen_rndNum():
from ghost import Ghost
从IDLE工作中运行它;但如果我只用这行代码运行一个py文件,它会得到这个错误。 Traceback (most recent call last):
File "C:\Users\Teo1\Desktop\sub\ghost.py", line 1, in <module>
from ghost import Ghost