摘要: PyCharm会默认使用自带的unittest框架来执行单元测试,不会执行main函数中的代码 解决方法: 1、点击PyCharm右上角的 Uittest in xxx.py下拉框. 2、点击Edit Configuration...,在弹出的对话框中,删除 unittests in xxxx.py 阅读全文
posted @ 2021-05-28 15:54 Aliwall 阅读(337) 评论(0) 推荐(0) 编辑