摘要: 自定义中输入4个0:代表数值长度为4位,不足的前面补0。 eg: 阅读全文
posted @ 2021-06-16 17:17 hangover 阅读(1261) 评论(0) 推荐(0)
摘要: 原因: mysql 8.0 默认使用 caching_sha2_password 身份验证机制 —— 从原来的 mysql_native_password 更改为 caching_sha2_password。 从 5.7 升级 8.0 版本的不会改变现有用户的身份验证方法,但新用户会默认使用新的 c 阅读全文
posted @ 2021-06-09 14:47 hangover 阅读(274) 评论(0) 推荐(0)
摘要: UPDATE 表名 set 字段名 = replace(字段名,'原数据','新数据'); 阅读全文
posted @ 2021-06-01 10:44 hangover 阅读(1133) 评论(0) 推荐(1)
摘要: import os n = 0 for root, dirs, files in os.walk('./'): for name in files: if name[-3:] !='txt': n += 1 print('正在删除第',n,'个文件,','其名为:',name) os.remove( 阅读全文
posted @ 2020-10-15 14:34 hangover 阅读(572) 评论(0) 推荐(0)
摘要: # -*- coding:utf-8 -*- import os path = os.getcwd() #获取当前路径 count = 0 count1 = 0 for root,dirs,files in os.walk(path): #遍历统计 for each in files: count 阅读全文
posted @ 2020-10-15 11:17 hangover 阅读(657) 评论(0) 推荐(0)
摘要: # coding: utf-8 import cv2 as cv import os print(' ') print('本工具有4个功能,键入不同数字,执行不同功能:1,2,3,4') print('如果输入有误,程序报错或执行结果(无结果)') print('\n') print('输入数字1: 阅读全文
posted @ 2020-10-12 17:38 hangover 阅读(128) 评论(0) 推荐(0)
摘要: import cv2 from matplotlib import pyplot as plt import os import numpy as np filepath = './Input' pathDir = os.listdir(filepath) for allDir in pathDir 阅读全文
posted @ 2020-09-28 16:23 hangover 阅读(117) 评论(0) 推荐(0)
摘要: # coding: utf-8 import cv2 as cv import os print(' ') print('按照全帧截取视频帧率照片(默认未裁剪图片,如不需要请更改代码 时间有点久,请稍等…………') print(' ') filepath = './input' pathDir = 阅读全文
posted @ 2020-09-28 16:19 hangover 阅读(886) 评论(0) 推荐(0)
摘要: import cv2 import numpy as np import os import sys import csv import time path = './Tmp' if not os.path.exists(path): os.mkdir(path) inputs = './Input 阅读全文
posted @ 2020-09-28 16:16 hangover 阅读(612) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt import cv2 import numpy as np import os import pandas as pd import time start = time.process_time() inputs1 = './input 阅读全文
posted @ 2020-09-28 16:13 hangover 阅读(230) 评论(0) 推荐(0)