- 博客(5)
- 收藏
- 关注
原创 matplotlib不显示中文问题的解决办法
1. 准备simhei.ttf字体文件 http://www.font5.com.cn/zitixiazai/1/151.html 如果链接失效,请百度自行搜索 2. 在jupyter中打印matplotlib配置文件的位置地址 import matplotlib print(matplotlib.matplotlib_fname()) 效果如图: 3. 进入到c:\users\ttzxh\appdata\local\programs\python\python38\lib\site-package
2020-05-12 13:13:23
286
原创 Python代码实现单个文件夹下多个html文件转md文件
Python代码实现单个文件夹下多个html文件转md文件 废话不多说,直接上代码 import os # 如果没有此模块,在终端 pip install html2text mport html2text as ht text_maker = ht.HTML2Text() # 文件夹路径 path="C:/Users/ttzxh\Desktop/PBI/02_Excel" # 遍历文件夹 for file in os.listdir(path): # 抛异常,没有bug就执行try的部分,否侧执行e
2020-05-10 01:52:23
520
原创 在python中如何获取元素的下标
第一种 word=[‘dislike’, ‘is’, ‘life’, ‘like’, ‘long’, ‘python’, ‘short’, ‘too’,‘is’] word1 = [i for i in enumerate(word)]# 或者用print(list(enumerate(list1))) print(word1) list_num1=[] for i in word1: i...
2020-03-17 20:07:06
1837
原创 pdf转换问题的解决
Pdf转换word等其它格式问题解决 第一种方案: 在线编辑PDF,网址是:https://tools.pdf24.org/zh/,该网址提供28种功能,能满足绝大部分用户需求。 第二种方案: 下载PDF Editor 6 Pro(努力一下,破鞋版就可以了)。 ...
2020-03-13 16:16:39
355
原创 安装pyecharts失败问题的分析与解决
1. 一直出现Copying dukpy 2. 单独装dukpy 1. pip install dukpy 3.重新查找分析错误 4.按装c++编译环境 再次pip install pyecharts==0.5.11,显示成功。
2020-02-28 13:54:13
2484
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅