上一页 1 2 3 4 5 6 7 ··· 17 下一页
摘要: 1. bool类型 布尔型的值只可以是常量 true 或者 false。 var b bool = true 2. 数值型 1. 整数型 int8 有符号 8 位整型 (-128 到 127) ⻓度:8bit int16 有符号 16 位整型 (-32768 到 32767) int32 有符号 3 阅读全文
posted @ 2023-03-08 16:41 ForLivetoLearn 阅读(29) 评论(0) 推荐(0)
摘要: 1. 变量定义 变量必须先定义后使用 变量必须有类型 变量定义后不能改变类型 变量定义后必须使用 var ( name string = "goland" age int = 18 ) // 简洁定义,有冒号,不能用于全局定义 name := "goland" age := 18 // 没有冒号 v 阅读全文
posted @ 2023-03-08 14:34 ForLivetoLearn 阅读(35) 评论(0) 推荐(0)
摘要: 实时同步还可以使用inotify+rsync命令,但是不太方便https://www.cnblogs.com/forlive/p/10769895.html sersync还可以实现开机自启动 配置rsync守护进程 安装rsync yum install rsync 修改rsync配置文件/etc 阅读全文
posted @ 2022-12-27 11:53 ForLivetoLearn 阅读(158) 评论(0) 推荐(0)
摘要: # 导入画图函数 import matplotlib.pyplot as plt # 创建画布, figsize:指定图的长宽, dpi:图像的清晰度,返回fig对象 plt.figure(figsize=(20, 8), dpi=100) # 创建X,Y坐标轴数据 x = [1,2,3,4,5] 阅读全文
posted @ 2022-12-21 16:14 ForLivetoLearn 阅读(68) 评论(0) 推荐(0)
摘要: 安装字体 安装字体程序 yum -y install cups-libs fontconfig ttmkfdir 创建中文字体目录 mkdir /usr/share/fonts/chinese chmod -R 755 /usr/share/fonts/chinese 在windows中查找字体,上 阅读全文
posted @ 2022-12-21 15:50 ForLivetoLearn 阅读(68) 评论(0) 推荐(0)
摘要: 配置文件格式 [root@yu ~]# cat /etc/logrotate.d/nginx /usr/local/openresty/nginx/logs/*.log { #指定你要切割的文件 daily #每天 rotate 7 #最多保留多少个切割后的日志. missingok #如果对应日志 阅读全文
posted @ 2022-11-28 14:12 ForLivetoLearn 阅读(93) 评论(0) 推荐(0)
摘要: 查看帮助手册 man openvpn 1.安装依赖包 版本信息 easy-rsa: 3.0.8 openvpn: 2.4.12 yum install -y lzo openssl pam yum install -y epel-release yum install -y openvpn easy 阅读全文
posted @ 2022-11-02 14:48 ForLivetoLearn 阅读(1854) 评论(0) 推荐(0)
摘要: nssm官网:http://www.nssm.cc/ 下载好nssm包后解压,找到nssm.exe文件,后续操作都需要以命令行启动 1.安装服务 PS E:\> .\nssm.exe install test Administrator access is needed to install a s 阅读全文
posted @ 2022-06-15 16:24 ForLivetoLearn 阅读(1891) 评论(0) 推荐(0)
摘要: 原文:https://blog.csdn.net/caicaibird0531/article/details/90694849 一、etree的Element类 1.通过etree.Element()创建XML树 from lxml import etree root = etree.Elemen 阅读全文
posted @ 2022-06-14 10:27 ForLivetoLearn 阅读(5982) 评论(0) 推荐(0)
摘要: 命令行连接数据库 -u:用户名 -p:密码 -S:socket文件 -h:ip -P:端口 -e:直接执行的命令 -N: 在命令行直接运行sql时,不显示表格框 <:恢复数据 常用字符集 > show charset; utf8:3个字节 utf8mb4:4个字节,支持emoji 常用排序规则 ut 阅读全文
posted @ 2022-06-07 11:10 ForLivetoLearn 阅读(56) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 17 下一页