01 2021 档案

摘要:https://www.liwenzhou.com/posts/Go/go_nsq/ 阅读全文
posted @ 2021-01-21 21:22 ty1539 阅读(55) 评论(0) 推荐(0) 编辑
摘要:mysql的备份和恢复 >>> mysqldump -uroot -p stu > stu.sql >>> mysqldump -uroot -p stu < stu.sql 阅读全文
posted @ 2021-01-20 22:55 ty1539 阅读(51) 评论(0) 推荐(0) 编辑
摘要:1. 生成列表的费时对比 #_*_coding:utf-8_*_ from timeit import Timer def test1(): li =[] for i in range(10000): li.append(i) def test2(): li = [] for i in range( 阅读全文
posted @ 2021-01-20 22:51 ty1539 阅读(98) 评论(0) 推荐(0) 编辑
摘要:proto生成proto.go protoc -I . --go_out=plugins=grep:. ./user.proto 阅读全文
posted @ 2021-01-18 16:39 ty1539 阅读(125) 评论(0) 推荐(0) 编辑
摘要:3.1事件循环 理解成为一个死循环,去检测并执行某些代码。 仿代码 任务列表-【任务1。任务2。任务3.] while True: 可执行的任务列表,已完成的任务列表 = 去任务列表中检查所有的任务,将"可执行" 和 "已完成"的任务返回 for就绪任务 in可执行的任务列表: 执行已就堵旳任务 f 阅读全文
posted @ 2021-01-14 17:20 ty1539 阅读(78) 评论(0) 推荐(0) 编辑
摘要:1、常用文件 /etc/samba/smb.conf #配置文件 /etc/samba/lmhosts #对应NetBOIS名与主机的IP的文件,一般samba会自动搜索(只对本机生效) /etc/samba/smbpasswd #samba密码保存文件,默认不存在 /etc/samba/smbus 阅读全文
posted @ 2021-01-14 16:39 ty1539 阅读(157) 评论(0) 推荐(0) 编辑
摘要:注意windows 本地的数据库名称大小写对于本地django的数据库配置无影响,但是到了centos7中,django的settings.py中的数据库配置有影响,切记切记 本地和远程的数据库传输 传输失败,如果有时这里显示 unsuccess时,请注意,解决办法,左上角:工具 >服务器监控 >选 阅读全文
posted @ 2021-01-11 13:57 ty1539 阅读(149) 评论(0) 推荐(0) 编辑
摘要:参考这个 https://blog.csdn.net/stormkai/article/details/88600370 和 https://www.cnblogs.com/hahajayou/p/haha.html 以及这个 https://www.cnblogs.com/handsomeye/p 阅读全文
posted @ 2021-01-02 20:16 ty1539 阅读(97) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示