现象:

每次想运行脚本的时候,总是运行了单元测试,郁闷之情。。。

 

解决方案:

1、菜单【Run】-> 【Edit Configurations...】, 点左上角的红色减号【-】删除相关单元测试项

2、右击__name__ == "__main__",点击运行即可。

相关文章: