摘要:
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
閱讀(22)
推薦(0)
摘要:
partial 生成偏函數 concurrent.futures的map函數 with futures.ThreadPoolExecutor() as executor: 函數名 = partial(待處理函數,相關參數,可以為整數,字符串,可迭代對象) executor.map(函數名,可迭代對象
閱讀全文
posted @ 2022-07-15 11:48
Hany47315
閱讀(88)
推薦(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
閱讀(81)
推薦(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
閱讀(574)
推薦(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
閱讀(163)
推薦(0)
摘要:
{ "builder": { "gc": { "defaultKeepStorage": "20GB", "enabled": true } }, "experimental": false, "registry-mirrors": [ "https://hub-mirror.c.163.com",
閱讀全文
posted @ 2025-02-24 22:52
Hany47315
閱讀(772)
推薦(0)
摘要:
這里的26561 是默認的,不要修改 打開Pycharm的設置 將127.0.0.1和26561錄入進去,然后在終端進行clone操作即可 如果沒有pycharm,在cmd終端也是可以的 打開系統代理設置
閱讀全文
posted @ 2024-12-10 15:24
Hany47315
閱讀(696)
推薦(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
閱讀(61)
推薦(0)
摘要:
在項目目錄輸入 git config --global credential.helper store 然后進行 git pull 輸入用戶名和密碼 以后再 git pull 就不用錄入了
閱讀全文
posted @ 2022-12-07 09:32
Hany47315
閱讀(85)
推薦(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
閱讀(160)
推薦(0)
摘要:
將系統打開word 的默認應用修改為 office的word,不要使用wps
閱讀全文
posted @ 2022-06-24 14:55
Hany47315
閱讀(591)
推薦(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
閱讀(89)
推薦(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
閱讀(46)
推薦(0)
摘要:
https://wxpy.readthedocs.io/zh/latest/index.html
閱讀全文
posted @ 2022-04-01 22:19
Hany47315
閱讀(54)
推薦(0)
摘要:
https://www.biaodianfu.com/python-schedule.html
閱讀全文
posted @ 2022-04-01 22:13
Hany47315
閱讀(35)
推薦(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
閱讀(77)
推薦(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
閱讀(475)
推薦(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
閱讀(358)
推薦(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
閱讀(37)
推薦(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
閱讀(316)
推薦(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
閱讀(986)
推薦(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
閱讀(207)
推薦(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
閱讀(425)
推薦(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
閱讀(721)
推薦(0)
摘要:
DELETE 別名 FROM 表名 別名 WHERE 別名.字段1 = '值' and 別名.字段2 = '值2'
閱讀全文
posted @ 2022-02-19 10:34
Hany47315
閱讀(68)
推薦(0)
摘要:
import MySQLdb # 打開數據庫連接 db = MySQLdb.connect("localhost", "testuser", "test123", "TESTDB", charset='utf8',port = 3306) # 使用cursor()方法獲取操作游標 cursor =
閱讀全文
posted @ 2022-02-16 16:44
Hany47315
閱讀(49)
推薦(0)
摘要:
http://www.rzrgm.cn/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
閱讀(332)
推薦(0)
摘要:
當再出現游離的 HEAD 時,需要先對當前的分支,如 master 進行簽出。 以后在進行添加代碼內容時,先簽出,然后再進行提交和推送。
閱讀全文
posted @ 2022-02-15 10:26
Hany47315
閱讀(57)
推薦(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
閱讀(124)
推薦(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)