# 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即可,不然遇到 中文会遇到编码问题