This topic created in 2817 days ago, the information mentioned may be changed or developed.
如题,新手,在 spyder 中 ipython 窗口运行多线程的时候,发现有的时候既可以输出,又可以输入。有的时候就只有输出,没办法输入。没有找到规律,偷个懒问一问。
1 replies 2018-08-10 20:02:55 +08:00  | | 1 LaFayette Aug 10, 2018 多线程一定要写 if __name__ == '__main__':, 所以在 ipython 中是没办法执行多线程的 |