不为别的,只为做一个连自己都羡慕的人

摘要: from datetime import datetime # Define the start time and end time as strings start_time_str = "2023-07-20 10:30:00" # Replace with your start time st 阅读全文
posted @ 2023-07-27 15:27 升级打怪 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 今天帮朋友调代码的时候,在人家的mac上面,项目没有任何错误,到我这里就出现 component: () =>import (’ ')加载路由错误。 发现是import处报错, import 属于异步引用组件,需要特殊的 babel-loader 处理。以下是我记录的办法 npm install b 阅读全文
posted @ 2022-12-28 09:56 升级打怪 阅读(1473) 评论(0) 推荐(0) 编辑
摘要: 1.根据时间对数组对象排序 package main import ( "fmt" "time" "github.com/ahmetb/go-linq/v3" ) type CustomTime time.Time func (a CustomTime) CompareTo(c linq.Compa 阅读全文
posted @ 2022-11-19 15:21 升级打怪 阅读(390) 评论(0) 推荐(0) 编辑
摘要: docker exec -it 334529194f22 /bin/bash -c 'pip install requests-2.22.0-py2.py3-none-any.whl' 其中334529194f22 是容器id,单引号中是想要使用容器中的环境 阅读全文
posted @ 2022-11-08 18:20 升级打怪 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 新建用户: CREATE USER 'testuser'@'LOCALHOST' IDENTIFIED BY '123456'; 赋予权限: grant select on *.* to 'testuser'@'LOCALHOST' identified by '123456'; 如果新建的用户在本 阅读全文
posted @ 2022-11-08 18:16 升级打怪 阅读(2523) 评论(0) 推荐(0) 编辑
摘要: 通过如下命令去修改: use mysql; update user set user.Host='%' where user.User='root'; flush privileges; 阅读全文
posted @ 2022-11-08 18:09 升级打怪 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 刚开始碰到这种异常,以为是代码写的有问题,准备抽时间去改,等有时间正式此问题的时候,发现这种问题一般只会在linux系统上出现,原因如下:linux系统限制了文件打开的最大文件句柄数,系统默认一般是1024,可通过如下命令去查看 ulimit -n 临时修改,执行: ulimit -n 524288 阅读全文
posted @ 2022-11-08 18:08 升级打怪 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 命令如下所示: find /home/deep/tf/20220601/study -name '*.h5' |xargs ls -lta 阅读全文
posted @ 2022-11-08 18:01 升级打怪 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 大部分go执行cmd命令都是,我也是这样写的 package main import ( "fmt" "os/exec" ) func main() { cmdExec := `cmd /c "D:\test test\AnyDesk.exe"` cmd := exec.Command("cmd", 阅读全文
posted @ 2022-11-08 18:00 升级打怪 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 1.配置源: distribution=$(. /etc/os-release;echo $ID$VERSION_ID) && curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - && curl 阅读全文
posted @ 2022-09-17 11:55 升级打怪 阅读(1207) 评论(0) 推荐(0) 编辑