摘要:
from concurrent import futures import toga from toga.style import Pack from toga.style.pack import COLUMN, CENTER import asyncio import time def sync_
阅读全文
posted @ 2025-04-18 16:37
Hany47315
阅读(19)
推荐(0)
摘要:
partial 生成偏函数 concurrent.futures的map函数 with futures.ThreadPoolExecutor() as executor: 函数名 = partial(待处理函数,相关参数,可以为整数,字符串,可迭代对象) executor.map(函数名,可迭代对象
阅读全文
posted @ 2022-07-15 11:48
Hany47315
阅读(86)
推荐(0)
摘要:
import pymysql pymysql.install_as_MySQLdb() host = '127.0.0.1' user = 'user ' password = 'password ' port = 3306 database = 'database' conn_database =
阅读全文
posted @ 2022-06-29 10:45
Hany47315
阅读(79)
推荐(0)
摘要:
1. python基础知识点 2. 字符串 3. 排序 4. 数据结构 5. 正则表达式 6. 线程 7. math 库 random 库 wordcloud 库 8. numpy基础 9. pandas基础 10. matplotlib简单图 11. mysql语句 12. 使用 pymysql
阅读全文
posted @ 2021-03-10 11:14
Hany47315
阅读(177)
推荐(0)
摘要:
前言: 众所周知windows一般情况下只有server版支持多用户同时远程连接,普通的windows是不支持的,但是我们可以破解一个DLL来让windows10/11支持该特性。 步骤: github上有个项目叫rdpwrap可以破解该DLL文件,很遗憾该项目自从2017年后便再没更新过。因此该项
阅读全文
posted @ 2025-05-06 20:09
Hany47315
阅读(492)
推荐(0)
摘要:
ROS 常用命令 工作空间与包管理 # 创建工作空间 mkdir -p ~/catkin_ws/src cd ~/catkin_ws/ catkin_make source devel/setup.bash # 创建 ROS 包 cd ~/catkin_ws/src catkin_create_pk
阅读全文
posted @ 2025-03-27 09:40
Hany47315
阅读(123)
推荐(0)
摘要:
{ "builder": { "gc": { "defaultKeepStorage": "20GB", "enabled": true } }, "experimental": false, "registry-mirrors": [ "https://hub-mirror.c.163.com",
阅读全文
posted @ 2025-02-24 22:52
Hany47315
阅读(715)
推荐(0)
摘要:
这里的26561 是默认的,不要修改 打开Pycharm的设置 将127.0.0.1和26561录入进去,然后在终端进行clone操作即可 如果没有pycharm,在cmd终端也是可以的 打开系统代理设置
阅读全文
posted @ 2024-12-10 15:24
Hany47315
阅读(634)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Demo</title> <!-- 请勿在
阅读全文
posted @ 2024-11-28 10:15
Hany47315
阅读(55)
推荐(0)
摘要:
在项目目录输入 git config --global credential.helper store 然后进行 git pull 输入用户名和密码 以后再 git pull 就不用录入了
阅读全文
posted @ 2022-12-07 09:32
Hany47315
阅读(83)
推荐(0)
摘要:
LOG_PATH = 'logs/debug' # 日志配置 LOGGING = { 'version': 1, #定义了配置文件的版本 'disable_existing_loggers': False, ## True表示禁用logger # 格式化 'formatters': { 'defau
阅读全文
posted @ 2022-07-19 10:40
Hany47315
阅读(143)
推荐(0)
摘要:
from win32com.client import Dispatch def just_open(filename='文件的绝对路径'): xlApp = Dispatch("Excel.Application") xlApp.Visible = False xlBook = xlApp.Wor
阅读全文
posted @ 2022-07-12 10:24
Hany47315
阅读(157)
推荐(0)
摘要:
将系统打开word 的默认应用修改为 office的word,不要使用wps
阅读全文
posted @ 2022-06-24 14:55
Hany47315
阅读(588)
推荐(0)
摘要:
from functools import wraps import time def timefn(fn): """计算性能的修饰器""" @wraps(fn) def measure_time(*args, **kwargs): t1 = time.perf_counter() result =
阅读全文
posted @ 2022-06-09 14:05
Hany47315
阅读(66)
推荐(0)
摘要:
import pyperclip pyperclip.copy(sql) 不支持linux
阅读全文
posted @ 2022-05-30 16:12
Hany47315
阅读(41)
推荐(0)
摘要:
https://blog.csdn.net/qq_41945846/article/details/82589407
阅读全文
posted @ 2022-05-26 15:19
Hany47315
阅读(88)
推荐(0)
摘要:
pip3 install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 包名称 pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.do
阅读全文
posted @ 2022-05-25 14:32
Hany47315
阅读(45)
推荐(0)
摘要:
https://wxpy.readthedocs.io/zh/latest/index.html
阅读全文
posted @ 2022-04-01 22:19
Hany47315
阅读(51)
推荐(0)
摘要:
https://www.biaodianfu.com/python-schedule.html
阅读全文
posted @ 2022-04-01 22:13
Hany47315
阅读(33)
推荐(0)
摘要:
https://www.jianshu.com/p/a663e52e6488 import queue import datetime import threading import functools class DelayedTask(object): def __init__(self, pl
阅读全文
posted @ 2022-04-01 22:01
Hany47315
阅读(71)
推荐(0)
摘要:
import pandas as pd import pandex import urllib.request import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = ['SimHei'] data_dic = { 'dat
阅读全文
posted @ 2022-04-01 21:16
Hany47315
阅读(458)
推荐(0)
摘要:
最开始我使用到的 OCR 识别版本(v2.3) 当前版本界面(v5.38) 识别方面,确实很好用。截图之后,可以选择复制识别文本。 下载地址 https://gitee.com/DDDDDGOOO/PandaOCR.Pro#https://gitee.com/link?target=https%3A
阅读全文
posted @ 2022-03-31 23:10
Hany47315
阅读(353)
推荐(0)
摘要:
btn.config(state=tk.DISABLED) https://tieba.baidu.com/p/6734353611
阅读全文
posted @ 2022-03-31 11:56
Hany47315
阅读(154)
推荐(0)
摘要:
使用 sys.exit(0) 比 exit(0) 在退出时,更加兼容
阅读全文
posted @ 2022-03-30 17:20
Hany47315
阅读(36)
推荐(0)
摘要:
UPDATE 表名 AS 别名 SET 别名.字段 = ( CASE 别名.字段 WHEN 1 THEN 999 WHEN 2 THEN 1000 END) WHERE 条件;
阅读全文
posted @ 2022-03-30 15:26
Hany47315
阅读(116)
推荐(0)
摘要:
import subprocess subprocess.run(cmd代码,shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, )
阅读全文
posted @ 2022-03-28 11:25
Hany47315
阅读(313)
推荐(0)
摘要:
from django.conf import settings import django import pymysql pymysql.install_as_MySQLdb() INSTALLED_APPS = [] DATABASES = { 'default': { 'ENGINE': 'd
阅读全文
posted @ 2022-03-25 12:42
Hany47315
阅读(983)
推荐(0)
摘要:
from django.http import HttpResponse,JsonResponse from django.shortcuts import render from django.db import connection # Create your views here. ''' i
阅读全文
posted @ 2022-03-09 21:16
Hany47315
阅读(206)
推荐(0)
摘要:
from datetime import datetime t = datetime.now() print(datetime.date(t)) print(t.isoformat(sep = ' ',timespec = 'seconds')) print(t.timestamp().__str_
阅读全文
posted @ 2022-03-03 10:00
Hany47315
阅读(424)
推荐(0)
摘要:
from datetime import datetime t = datetime.now() now_time = t.isoformat(sep=' ', timespec='seconds')
阅读全文
posted @ 2022-02-25 09:39
Hany47315
阅读(156)
推荐(0)
摘要:
颜色方案 list(plt.colormaps.keys()) import numpy as np import matplotlib.pyplot as plt category_names = ['Strongly disagree', 'Disagree', 'Neither agree n
阅读全文
posted @ 2022-02-21 14:15
Hany47315
阅读(316)
推荐(0)
摘要:
https://www.jb51.net/article/172873.htm limit: Number.MAX_VALUE
阅读全文
posted @ 2022-02-19 11:18
Hany47315
阅读(720)
推荐(0)
摘要:
DELETE 别名 FROM 表名 别名 WHERE 别名.字段1 = '值' and 别名.字段2 = '值2'
阅读全文
posted @ 2022-02-19 10:34
Hany47315
阅读(67)
推荐(0)
摘要:
import MySQLdb # 打开数据库连接 db = MySQLdb.connect("localhost", "testuser", "test123", "TESTDB", charset='utf8',port = 3306) # 使用cursor()方法获取操作游标 cursor =
阅读全文
posted @ 2022-02-16 16:44
Hany47315
阅读(47)
推荐(0)
摘要:
https://www.cnblogs.com/randomlee/p/9752705.html pip install django-cors-headers==3.10.0 INSTALLED_APPS = [ ... 'corsheaders', ... ] MIDDLEWARE_CLASSE
阅读全文
posted @ 2022-02-15 16:50
Hany47315
阅读(238)
推荐(0)
摘要:
import shutil import os def del_file(filepath): try: del_list = os.listdir(filepath) except Exception as e: return for f in del_list: file_path = os.p
阅读全文
posted @ 2022-02-15 10:30
Hany47315
阅读(328)
推荐(0)
摘要:
当再出现游离的 HEAD 时,需要先对当前的分支,如 master 进行签出。 以后在进行添加代码内容时,先签出,然后再进行提交和推送。
阅读全文
posted @ 2022-02-15 10:26
Hany47315
阅读(53)
推荐(0)
摘要:
df.to_csv('表名.csv',index = False,encoding='utf-8-sig')
阅读全文
posted @ 2022-02-12 16:02
Hany47315
阅读(198)
推荐(0)
摘要:
now_time = datetime.now().isoformat(sep = ' ',timespec='seconds')
阅读全文
posted @ 2022-02-12 16:01
Hany47315
阅读(123)
推荐(0)
摘要:
json.dumps(字典,ensure_ascii=False)
阅读全文
posted @ 2022-02-12 16:00
Hany47315
阅读(75)
推荐(0)
摘要:
import warnings warnings.filterwarnings('ignore')
阅读全文
posted @ 2022-02-12 15:59
Hany47315
阅读(35)
推荐(0)