没有名称为 ‘HTMLTestRunner’ 的模块
使用pip安装报错
(venv) PS D:\WorkSpace\PythonProject> pip install StringIO -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
ERROR: Could not find a version that satisfies the requirement StringIO (from versions: none)
ERROR: No matching distribution found for StringIO
下载HTMLTestRunner.py拷贝到Python安装路径的库文件夹下面:D:\Python\Python310\Lib,解决问题
#从datatime
from datetime import datetime