使用python3时,以file = open(os.getcwd() + "/report.html","w")的方式生成报告会报write() argument must be str, not bytes错,如图。解决方法时把"w"改为"wb"。
生成的html报告
使用python3时,以file = open(os.getcwd() + "/report.html","w")的方式生成报告会报write() argument must be str, not bytes错,如图。解决方法时把"w"改为"wb"。
生成的html报告
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。