摘要: https://github.com/zhujisheng/Home-Assistant-DIY 阅读全文
posted @ 2022-03-31 00:07 静静别跑 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: import os import time from multiprocessing import Process, Lock from threading import Thread, current_thread n = 0 class AA: def __init__(self) 阅读全文
posted @ 2022-03-15 10:44 静静别跑 阅读(630) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/traditional/p/9217594.html https://mlln.cn/2018/05/19/python3%20f-string%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%AD%97%E7%AC%A6%E4%B8%B2 阅读全文
posted @ 2021-03-02 16:07 静静别跑 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 使用gin web框架开发,使用 github.com/gin-contrib/pprof 包 import "github.com/gin-contrib/pprof" pprof.Register(router) 输出图片相关格式需要先安装graphviz,graphviz安装地址如下 http 阅读全文
posted @ 2021-02-26 13:42 静静别跑 阅读(1123) 评论(1) 推荐(0) 编辑
摘要: 账号:http://bugmenot.com/view/oracle.com 阅读全文
posted @ 2021-02-23 11:46 静静别跑 阅读(221) 评论(0) 推荐(0) 编辑
摘要: def auto_add_namespace(): path = os.path.dirname(os.path.abspath(__file__)) base_file = ".".join(path.split('\\')[-2:]) n = 0 for module_name in os.li 阅读全文
posted @ 2021-02-01 12:03 静静别跑 阅读(146) 评论(0) 推荐(0) 编辑
摘要: cp a.txt $(date +%Y-%m-%d_%H:%M:%S).txt 阅读全文
posted @ 2020-11-23 16:13 静静别跑 阅读(817) 评论(0) 推荐(0) 编辑
摘要: https://youtrack.jetbrains.com/issue/PY-41780?_ga=2.253725385.1580322258.1604915603-1600496771.1604915603 This worked for me - set this environment va 阅读全文
posted @ 2020-11-09 18:01 静静别跑 阅读(1259) 评论(0) 推荐(0) 编辑
摘要: 背景: net/url库没找到如何控制特殊字符不转码,自己实现 main: package main import ( "ap/url_utils" "fmt" ) func main() { // :/?~%&+=;,@()!*#$' url := "http://www.baidu.com/aa 阅读全文
posted @ 2020-11-07 00:52 静静别跑 阅读(3486) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/xiaozhiit/article/details/98201673 https://blog.csdn.net/sinat_32651363/article/details/87882067 阅读全文
posted @ 2020-09-07 19:23 静静别跑 阅读(130) 评论(0) 推荐(0) 编辑