摘要: 1. 安装pyserial pip3 install pyserial 2. 使用方式 config.py import serial port = "COM1" baudrate = 2400 bytesize = serial.SEVENBITS stopbits = serial.STOPBI 阅读全文
posted @ 2023-07-16 22:23 wstong 阅读(39) 评论(0) 推荐(0) 编辑
摘要: ### 1. 环境准备 安装相关的库 ``` pip3 install fitz -i https://pypi.tuna.tsinghua.edu.cn/simple pip3 install PyMuPDF -i https://pypi.tuna.tsinghua.edu.cn/simple 阅读全文
posted @ 2023-07-16 10:52 wstong 阅读(777) 评论(0) 推荐(0) 编辑
摘要: ### 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 阅读(71) 评论(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 阅读(20) 评论(0) 推荐(0) 编辑