摘要: import os import subprocess def play_videos_in_folder(folder_path): # 获取所有视频文件 files = [os.path.join(folder_path, f) for f in os.listdir(folder_path) 阅读全文
posted @ 2023-11-16 14:58 朝阳1 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 最近有个需求是把看广告的日志转成excel package main import ( "bufio" "encoding/json" "flag" "fmt" "github.com/xuri/excelize/v2" "os" "time" ) // Ad 广告 type Ad struct { 阅读全文
posted @ 2023-11-16 11:49 朝阳1 阅读(141) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "github.com/shirou/gopsutil/cpu" "github.com/shirou/gopsutil/disk" "github.com/shirou/gopsutil/host" "github.com/shirou/go 阅读全文
posted @ 2023-11-16 11:26 朝阳1 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 先通过命令行进入mysql的root账户: 更改加密方式 ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; 更改密码 ALTER USER 'root'@'localhost' IDENTIFI 阅读全文
posted @ 2023-11-16 09:46 朝阳1 阅读(115) 评论(0) 推荐(0) 编辑
摘要: package main import ( "crypto/rand" "crypto/rsa" "crypto/x509" "crypto/x509/pkix" "encoding/pem" "math/big" "net" "os" "time" ) func main() { max := n 阅读全文
posted @ 2023-11-16 09:39 朝阳1 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1:有账号的情况下 use mysql; update user set Host = '%' where User='root'; flush privileges; 2:无账号的情况下,grant 命令重新创建一个用户 grant all privileges on *.* to root @" 阅读全文
posted @ 2023-11-16 09:30 朝阳1 阅读(9) 评论(0) 推荐(0) 编辑