pycharm不以pytest方式运行,想要切换回普通模式运行的方法

有时候系统会以pytest的形式运行,如果不想以这种方式运行,换回普通模式,那么就点击画圈圈那里的白色三角行

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

 

点击Edit configurations

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

 

点击“-”

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

 

出现如下图,点击python

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

点击左上角的“+”,选择Python

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

 

查找你所需要执行的文件所在的目录

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

 

 

点击ok

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

在Name那里写文件名

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

点击右下角的ok

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

这时候再观察,发现没有pytest了

pycharm不以pytest方式运行,想要切换回普通模式运行的方法

右键选run 运行程序

pycharm不以pytest方式运行,想要切换回普通模式运行的方法