上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 30 下一页
摘要: https://www.yiibai.com/git/git_log.html 经验: 单元测试,数据库sql 的值他不是字符串,你需要注意 用这个:当你git add以后想撤销就用这个 git reset HEAD benchmarks.rb 原理:只会删除缓存区文件,工作区文件不会改变git r 阅读全文
posted @ 2021-11-01 15:01 3ξ 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1.最牛的模块:xlsxwriter 其他的模块你用的时候去百度就可以了;方法名用法都差不多。 import xlsxwriter book = xlsxwriter.Workbook("E://a.xlsx") #创建一个文件 workfomat = book.add_format({ 'bold 阅读全文
posted @ 2021-10-31 13:10 3ξ 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1.使用opencv来切割,这个你可以把图片理解成为二维数组来玩 pip install opencv-python 代码: import cv2 def cut_img(old_path,new_path,area): img = cv2.imread(old_path) cropped = im 阅读全文
posted @ 2021-10-30 22:53 3ξ 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1.本篇给大家封装了一个函数,用来将pdf转化为png图片,可以转化全部,也可以转化单页; 代码如下: import fitz import os def pyMuPDF_fitz(pdfPath, imagePath, num, all=True): """ :param pdfPath: pdf 阅读全文
posted @ 2021-10-30 22:36 3ξ 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 数字识别慕课网:数据集合 文字识别 https://www.cnblogs.com/fengchuiguobanxia/p/15432458.html 文本相似度,牛逼 1 2 自然远处理 识别pdf文字 裁剪图片的两种方式 读取excel写入excel 文件流 bytesIO 将pdf转化为照片 阅读全文
posted @ 2021-10-27 17:38 3ξ 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1.初识Flask 1.1先谈一下python框架区别 Flask框架: 谈一下对python框架: django:大而全,内部提供ORM,Admin,中间件,Form,ModelForm,session,缓存,信号,CSRF flask:小而轻,可扩展性强 tornado:小而轻,异步非堵塞 ws 阅读全文
posted @ 2021-10-18 22:45 3ξ 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1.with语句的原理: 1.1with是对类进行操作,必须包括以下三个函数 1.1.1 def __enter__(self):return self 必须返回自己 1.1.2 def __exit__(self, exc_type, exc_val, exc_tb):关闭类之前做的操作 1.1. 阅读全文
posted @ 2021-10-07 21:33 3ξ 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 1.查询端口备用情况 netstat -tunlp|grep 8080 2杀死程序kill pid 3.传输文件到服务器scp a.txt root@wusen0601.xyz:/root/home/ws 阅读全文
posted @ 2021-09-29 15:29 3ξ 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1.自定义的进度条,拿去用 # 自己写一个进度条 import time def progress(count,counts,length=50,key="█",second=0.1): """ :param count: 已完成的值 :param counts: 总量 :param length: 阅读全文
posted @ 2021-09-28 22:27 3ξ 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 1.获取处理器核心数 import os print(os.cpu_count()) 2.获取内存&使用情况 import psutil import time while 1: mem = psutil.virtual_memory() print(mem) total = str(round(m 阅读全文
posted @ 2021-09-28 21:27 3ξ 阅读(231) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 30 下一页