近来在网上采集数据,想把采集下来的数据整合成html的形式保存.以便其他的平台产品可以直接读取html显示或者根据html标签提取数据. def output_html(self): try: fout = open('output.html','w') fout.write("<html>") fout.write("<body>") fout.write("<table>") for data in sel…
python matplotlib 中文显示乱码设置 原因:是matplotlib库中没有中文字体.1 解决方案:1.进入C:\Anaconda64\Lib\site-packages\matplotlib\mpl-data该文件夹下就能看到matplotlibrc配置文件,打开该配置文件 找到下面这行:然后,将前面的注释去掉,save. #font.serif : Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook…