- 博客(8)
- 收藏
- 关注
原创 MySQL字符串排序无效的问题
有一张表,字段存储类型为字符串,值为数字。直接使用order by排序,结果仍然是乱序。select * from table order by value;idValue112123154185262473字符串转换数字的方法:(type: DECIMAL 浮点数,SIGNED 整数,UNSIGNED 无符号整数)CAST(value as type)CONVERT(value, type)select * fro
2021-07-09 15:06:43
1173
原创 mysqlclient安装报错【OSError: mysql_config not found】
pip3 install mysqlclient安装时报错如下:Looking in indexes: http://mirrors.aliyun.com/pypi/simple/Collecting mysqlclient Downloading http://mirrors.aliyun.com/pypi/packages/3c/df/59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7/mysqlclient-2.0.3.ta.
2021-06-09 14:47:15
334
原创 [Python OCR] pytesseract 的正确使用方式(报错 TesseractNotFoundError)
pytesseract的pypi网址如果直接安装使用会报错:ocr图片:简易使用:pip3 install pytesseractimport pytesseractfrom PIL import Imageprint(pytesseract.image_to_string(Image.open('1.png')))报错如下:pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it.
2021-04-14 21:47:21
573
原创 Python pip3 使用国内镜像源
pip documentation阿里云:pip3 config set global.index-url http://mirrors.aliyun.com/pypi/simple/修改完查看一下:pip3 config list
2021-04-14 17:25:26
1553
原创 [Supervisor] Linux中进程管理工具
介绍:Supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems.Supervisor 是一个客户端/服务器系统,允许用户控制在类UNIX系统上的一些进程。(把其它的应用程序进程全部管理起来)支持的平台:Linux (Ubuntu), Mac OS X (10.4, 10.5, 10.6), and Sol.
2021-01-27 18:33:26
84
原创 米家1代电动牙刷 更换电池
米家1代电动牙刷,过了3年,里面的锂电池衰减的不行了,考虑换个电池就能满血复活。 拆解之前先参考 bilibili: 拆解视频。用充电底座套住牙刷底部,然后拧一下旋转,注意力道,也有说这种方法把充电感应线圈的导线给拧断的。电路板A面如下:电池仓B面如下:稍微麻烦的地方:拆下电池。电池上焊接有金属片穿过电路板,需要用电烙铁把针脚上的焊锡给先融化,然后用吸锡器吸掉,就很容易把电池取下来了。电烙铁的温度设置到350℃比较合适,之前调到300℃,焊锡半天没融化。好吧,不做硬件..
2020-08-20 20:44:53
6351
1
原创 Docker镜像太大的解决办法
Dockerfile中FROM 镜像的选择使用原始镜像:FROM python:3.6REPOSITORY TAG IMAGE ID CREATED SIZEmy_project latest fbf350f1e6d8 20 minutes ago 1.07GB使用:FROM python:3.6使用slim:FROM py
2020-07-14 22:52:44
6946
原创 [SQL] update...from...
需求:根据B表中内容更新A表中的字段内容--PostgreSQL 12.3 (Ubuntu 12.3-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0, 64-bitupdate libset goodsid = map.gid, ludpdate = map.ludpdatefrom mapwhere string_to_array(lib.pid, '') &
2020-06-22 16:45:05
444
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人