10 2024 档案

摘要:tcp_client.py # -*- coding:utf-8 -*- # tcp 客户端,使用单例模式实现 # create: 2023-06-26 import socket import time import traceback class TCPConnection: __instanc 阅读全文
posted @ 2024-10-30 23:34 BrianSun 阅读(42) 评论(0) 推荐(0) 编辑
摘要:copy_with_hardlink.py import os import argparse def copy_with_hardlinks(src, dst): if not os.path.exists(dst): os.makedirs(dst) for item in os.listdir 阅读全文
posted @ 2024-10-25 17:31 BrianSun 阅读(26) 评论(0) 推荐(0) 编辑
摘要:python3 log工具 logutil.py # -*- coding: utf-8 -*- import os,sys,traceback import logging from logging.handlers import RotatingFileHandler import getpas 阅读全文
posted @ 2024-10-14 15:16 BrianSun 阅读(34) 评论(0) 推荐(0) 编辑
摘要:python3 mysql 连接脚本 # -*- coding: utf-8 -*- # import MySQLdb,sys,os import pymysql as MySQLdb,sys,os import os,sys,traceback # import MySQLdb.cursors # 阅读全文
posted @ 2024-10-12 17:22 BrianSun 阅读(14) 评论(0) 推荐(0) 编辑
摘要:python3 sqlite3 数据库创建 & 连接 脚本 # -*- coding:utf-8 -*- import traceback import sqlite3 import re import os class DB(object): def __init__(self, dbname, 阅读全文
posted @ 2024-10-12 16:32 BrianSun 阅读(62) 评论(0) 推荐(0) 编辑

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