# htmlf=open('E:\\test2.html','r',encoding="utf-8")
# htmlcont=htmlf.read()
# print(type(htmlcont))
# send_mail(mailto_list,"hello",htmlcont,"E:\pyprojects\\testandroid\\testreport\\2018-01-03_17-40-10.html")

加上参数encoding即可,不然遇到 中文会遇到编码问题

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
猜你喜欢
  • 2021-12-14
  • 2022-03-08
  • 2021-05-21
  • 2022-12-23
  • 2021-08-13
  • 2021-03-27
  • 2022-12-23
相关资源
相似解决方案