摘要: ### 1. 安装pdf2docx ``` pip3 install pdf2docx -i https://pypi.tuna.tsinghua.edu.cn/simple ``` ### 2. 简单使用 ``` from pdf2docx import parse pdf_file = 'tes 阅读全文
posted @ 2023-07-16 01:37 wstong 阅读(221) 评论(0) 推荐(0)
摘要: ``` pip install sympy ``` ``` import sympy ``` ```py # 虚数单位i sympy.I # 𝑖 sympy.I ** 2 # -1 sympy.sqrt(-1) # 𝑖 # 自然对数的底e sympy.E # e sympy.log(sympy. 阅读全文
posted @ 2023-07-16 01:15 wstong 阅读(82) 评论(0) 推荐(0)
摘要: ### 1. 下载工具 github地址:https://github.com/Genymobile/scrcpy 下载win64版本 ### 2. 手机准备 启用开发者选项里面的usb调试和usb调试(安全设置) ![image](https://img2023.cnblogs.com/blog/ 阅读全文
posted @ 2023-07-15 01:08 wstong 阅读(409) 评论(0) 推荐(0)
摘要: ### 1. jionlp安装 ``` pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple jionlp ``` github地址 https://github.com/dongrixinyu/JioNLP ### 2. 简单使用 ``` 阅读全文
posted @ 2023-07-09 21:04 wstong 阅读(1400) 评论(0) 推荐(0)
摘要: 在使用pandas写excel时,报了IllegalCharacterError的错误,发现是存在非法字符造成的,使用xlsxwriter模块可以解决这个问题 ```py import xlsxwriter data.to_excel('out.xlsx', engine='xlsxwriter') 阅读全文
posted @ 2023-07-07 21:07 wstong 阅读(713) 评论(0) 推荐(0)
摘要: FillerOrderNumber列的类型为TEXT,里面的值为 ![image](https://img2023.cnblogs.com/blog/3130057/202307/3130057-20230701235015577-1381579927.png) ![image](https://i 阅读全文
posted @ 2023-07-01 23:53 wstong 阅读(24) 评论(0) 推荐(0)
摘要: ```py a = [1,3,5,7,9] # 查找第一个大于等于x的位置 def lower_bound(l, r, x): while l <= r: mid = (l+r) // 2 if a[mid] < x: l = mid + 1 else: r = mid - 1 return l # 阅读全文
posted @ 2023-06-30 12:53 wstong 阅读(36) 评论(0) 推荐(0)
摘要: ```py import time import datetime def CalTime(date1, date2): # %Y-%m-%d %H:%M:%S为日期格式 # date1 = time.strptime(date1, '%Y-%m-%d %H:%M:%S') # date2 = ti 阅读全文
posted @ 2023-06-29 16:28 wstong 阅读(271) 评论(0) 推荐(0)
摘要: ### 1.web端控制台代码 ``` const successCallback = function(data) { console.log(data); } var import_js = document.createElement('script'); import_js.setAttri 阅读全文
posted @ 2023-06-21 20:11 wstong 阅读(69) 评论(0) 推荐(0)
摘要: 先定义以下函数,然后使用console.save()来保存 ``` (function (console) { console.save = function (data, filename) { let MIME_TYPE = "text/json"; if (!data) return; if 阅读全文
posted @ 2023-06-21 08:25 wstong 阅读(230) 评论(0) 推荐(0)