摘要:
封装代码后通过pytest运行时报错模块没找到错误。 导入模块前面加上这2句话解决 No modlue name '模块名'的报错。 import os,sys sys.path.append(os.getcwd()) #告诉pytest运行前先检索当前路径 报错原因pytest运行时没有检索当前目 阅读全文
posted @ 2019-09-13 00:32
圆觉
阅读(6603)
评论(0)
推荐(0)
2019年9月13日