这是一个创建于 2254 天前的主题,其中的信息可能已经有所发展或是发生改变。
如题,新手,在 spyder 中 ipython 窗口运行多线程的时候,发现有的时候既可以输出,又可以输入。有的时候就只有输出,没办法输入。没有找到规律,偷个懒问一问。
1 条回复 • 2018-08-10 20:02:55 +08:00
|
|
1
qianc1990 2018-08-10 20:02:55 +08:00
多线程一定要写 if __name__ == '__main__':, 所以在 ipython 中是没办法执行多线程的
|