这个非常坑,比如在函数中使用了一个未定义的变量,它也不报错,直接退出运行。
按照这个配置就好了:https://blog.csdn.net/qq842977873/article/details/82505575 (图片打不开,可以复制图片地址,然后在地址栏打开)
Run --- Edit Configurations --- 勾选 Emulate terminal in output console
← 装饰器 python 写文件→