第一个问题:运行程序出现在Python console(需要用run运行)。
修改问题:操作如下,选中edit configurations…,
取消勾选该选项即可。
第二个问题:右键运行程序,出现Run 'pytest in **.py’的情况,**而不是以前的Run ‘****.py’。
解决办法:左上角点击 file-settings-tools-python integrated tools,在testing中修改default test runner方式为unittests即可。