随笔分类 -  Python开发

摘要:import pdf2docx import PyPDF2 import spire 参考: https://www.cnblogs.com/geekbruce/articles/18427413 https://cloud.tencent.cn/developer/article/2573206 阅读全文
posted @ 2025-10-24 23:05 星空28 阅读(11) 评论(0) 推荐(0)
摘要:参考: https://docs.pingcode.com/ask/966709.html https://blog.csdn.net/weixin_42359464/article/details/127598227 https://www.oryoy.com/news/po-jie-nei-wa 阅读全文
posted @ 2025-10-19 17:10 星空28 阅读(23) 评论(0) 推荐(0)
摘要:参考: https://blog.csdn.net/Rocky006/article/details/134056286 https://zhuanlan.zhihu.com/p/676889182 https://blog.csdn.net/2301_76542477/article/detail 阅读全文
posted @ 2025-07-02 17:29 星空28 阅读(19) 评论(0) 推荐(0)
摘要:程序被关闭后自动重启 参考:https://blog.51cto.com/u_16213464/12870370 阅读全文
posted @ 2025-07-02 17:26 星空28 阅读(25) 评论(0) 推荐(0)
摘要:https://repo.anaconda.com/archive/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 阅读全文
posted @ 2025-03-21 16:44 星空28 阅读(74) 评论(0) 推荐(0)
摘要:方式一 import requests import json import sys class DeepseekChat: def __init__(self, base_url="http://127.0.0.1:11434"): self.base_url = base_url self.ap 阅读全文
posted @ 2025-02-25 18:04 星空28 阅读(419) 评论(0) 推荐(0)
摘要:代码 import clr # 安装时使用pip install pythonnet clr.AddReference(r'E:\PythonCode\RWInfluxDBTest\OpenHardwareMonitor\OpenHardwareMonitorLib') # e.g. clr.Add 阅读全文
posted @ 2025-01-07 16:34 星空28 阅读(56) 评论(0) 推荐(0)
摘要:1、生成项目目录树 在当前文件所在文件夹下运行。 2、代码 dir_tree.py # -*- coding: utf-8 -*- import sys from pathlib import Path class DirectionTree(object): """生成目录树 @ pathname 阅读全文
posted @ 2024-12-30 16:06 星空28 阅读(86) 评论(0) 推荐(0)
摘要:方法一: 生成二维码 import qrcode # 生成二维码 img = qrcode.make(data="你好") # 将二维码保存为图片 with open('qrcode_test.png', 'wb') as f: img.save(f) 解码二维码 import cv2 d=cv2. 阅读全文
posted @ 2024-08-24 12:01 星空28 阅读(379) 评论(0) 推荐(0)
摘要:网页格式发送 for_email.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> h1 { color: brown; } p { margin: 5px 阅读全文
posted @ 2024-07-30 13:54 星空28 阅读(26) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/a__int__/article/details/104183077 阅读全文
posted @ 2024-07-28 15:26 星空28 阅读(11) 评论(0) 推荐(0)
摘要:服务端代码 #! /usr/bin/env python #-*- coding:utf-8 -*- import socket import threading class ThreadedServer(object): def __init__(self, host, port): self.h 阅读全文
posted @ 2024-06-28 14:09 星空28 阅读(68) 评论(0) 推荐(0)