摘要: from pdf2docx import Converter pdf_file = '1.pdf' docx_file = '1.docx' cv = Converter(pdf_file) cv.convert(docx_file, start=0, end=None) cv.close() 阅读全文
posted @ 2021-09-20 15:59 CodeYaSuo 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 官方文档 https://pyshorteners.readthedocs.io/en/latest/ 安装 pip install pyshorteners 我的版本 Successfully installed certifi-2021.5.30 charset-normalizer-2.0.6 阅读全文
posted @ 2021-09-20 15:23 CodeYaSuo 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install pyqrcode 我的版本:pyqrcode-1.2.1 pip install pypng 我的版本:pypng 0.0.21 这里要注意的是 导入时写法为 import pyqrcode import png import pyqrcode import png f 阅读全文
posted @ 2021-09-20 15:10 CodeYaSuo 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install textblob 我的版本:0.15.3 from textblob import TextBlob string = "you arr best" # 此处的 arr 应为 are TextBlob(string).correct() 阅读全文
posted @ 2021-09-20 14:45 CodeYaSuo 阅读(71) 评论(0) 推荐(0) 编辑
摘要: import socket host_name = socket.gethostname() ip = socket.gethostbyname(host_name) print("本地IP地址是:" + ip) 阅读全文
posted @ 2021-09-20 14:32 CodeYaSuo 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install speedtest-cli 我的是 Successfully installed speedtest-cli-2.1.3 import speedtest、 # 创建测试对象 test = speedtest.Speedtest() down = test.downlo 阅读全文
posted @ 2021-09-20 14:16 CodeYaSuo 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 准备工作 安装第三方库: pip install autoviz xlrd wordcloud 我安装的 autoviz 是 0.0.84 xlrd 是 1.2.0 wordcloud 是 1.8.1 如果你有数据集,如 csv 文件,可以用你自己的。 我这里使用的是 seaborn-data 数据 阅读全文
posted @ 2021-09-20 13:49 CodeYaSuo 阅读(657) 评论(0) 推荐(0) 编辑