合集-Python开发

摘要:服务端代码 #! /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:08 星空28 阅读(31) 评论(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 阅读(210) 评论(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 阅读(7) 评论(0) 推荐(0) 编辑
摘要:参考 https://www.cnblogs.com/mic112/p/15416875.html https://www.cnblogs.com/mic112/p/15420129.html 阅读全文
posted @ 2024-07-12 14:05 星空28 阅读(5) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/a__int__/article/details/104183077 阅读全文
posted @ 2024-07-28 15:26 星空28 阅读(6) 评论(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 阅读(22) 评论(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 阅读(10) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示