问题描述

有时候莫名其妙的,运行程序时会从原来的run XXX.py变为pytest in XXX.py,得到下面的界面:

[debug] PyCharm 退出 pytest in XXX.py,恢复run XXX.py

解决方法

点击 Run --> edit configurations
[debug] PyCharm 退出 pytest in XXX.py,恢复run XXX.py
然后将除了Templates之外的文件,点击减号删除掉,最后点击Apply。

最后结果如下图:
[debug] PyCharm 退出 pytest in XXX.py,恢复run XXX.py

参考博客:pycharm不以pytest方式运行,想要切换回普通模式运行的方法

相关文章:

  • 2021-05-29
  • 2021-12-06
  • 2022-01-17
  • 2022-01-09
  • 2021-06-28
  • 2021-07-20
  • 2021-10-18
猜你喜欢
  • 2021-08-15
  • 2022-01-07
  • 2022-02-03
  • 2021-04-11
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案