关于Python的一本教程,我编写了一个将摄氏温度转换为华氏的程序。当我在空闲的shell中运行它时,程序可以工作,但返回一个错误。module>ImportError: No module named 'convert.py'; 'convert' is not a package
我正在使用Python3.4.1
在带有IDLE 3.6.2的Windows 7上,我导入了包GPIOSimulator,没有错误。我导入pip并执行sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()])
并获取以下内容,这样看起来就好像安装了, 'pigpio==1.35', 'pip==9.0.1', 'pycodestyle==2.3.1', 'pyflakes==1.5