问题:
程序写好后,按下F5,但是提示错误:
IDLE's subprocess didn't make connection.Either IDLE can;t
start a subprocess or personal firewall software is blocking
the connection
That usually means that your firewall is blocking IDLE, so
enable it in your firewall. If that doesnt work, do this to fix
it (with some disavantages):
解决:
step1. 打开Python安装目录下的这个文件
C:\Python27\Lib\idlelib\PyShell.py
step2. ctrl F 搜索'use_subprocess = ',应该在main下面第一行
step3.
change
use_subprocess = True
to
use_subprocess = False
step4. 删除PyShell.pyc,使之从新编译后再次生成。