上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页

2019年8月4日

Python 函数/高阶函数

摘要: 编写高阶函数,就是让函数的参数能够接收别的函数。 阅读全文

posted @ 2019-08-04 12:49 思此狂 阅读(97) 评论(0) 推荐(0)

2019年8月3日

Python dic/set/迭代

摘要: 字典的定义 dic = {"name":"zhangsan","age":7,"val":{"math":60,"eng":80}} 值的输出 print dic["name"] #zhangsan print dic["val"]["math"] #60 字典的遍历 dic = {"name":" 阅读全文

posted @ 2019-08-03 13:29 思此狂 阅读(310) 评论(0) 推荐(0)

2019年7月21日

python matplotlib 图标绘制

摘要: 更多可以访问 https://www.runoob.com/numpy/numpy-matplotlib.html 阅读全文

posted @ 2019-07-21 16:02 思此狂 阅读(1070) 评论(0) 推荐(0)

2019年5月18日

python unittest

摘要: lib.py重的一个add函数 test.py中的测试函数 NameTestCase 是我们创建的类,用于包含一些列测试单元。类的名字可以随便命名,但最好有意义,与测试有关。 testadd 是我们的一个测试方法,运行测试文件时候,所有test开头的都会被 运行。 assertAlmostEqual 阅读全文

posted @ 2019-05-18 23:27 思此狂 阅读(164) 评论(0) 推荐(0)

2019年2月13日

expect 示例

摘要: #!/usr/bin/expect set timeout 30 set IP [lindex $argv 0] set USER [lindex $argv 1] spawn ssh $USER@$IP expect { "Are you sure you want to continue con 阅读全文

posted @ 2019-02-13 21:58 思此狂 阅读(134) 评论(0) 推荐(0)

2019年1月6日

Linux设备开机卡主

摘要: 1 linux 设备开机卡主 卡在了执行 /etc/rc.d/rc.local 中设置的开机启动命令中了。 解决方法 参考这篇文档修改grub https://m.linuxidc.com/Linux/2017-02/140653.htm 1 重启设备,当启动至选择内核界面(1, 正常内核 2 re 阅读全文

posted @ 2019-01-06 20:43 思此狂 阅读(824) 评论(0) 推荐(0)

2018年12月1日

systemd

摘要: 1 关于自定义的一个service,以nginx为例 相关参数解释 https://www.cnblogs.com/wjb10000/p/5566801.html https://blog.csdn.net/comprel/article/details/82750288 http://www.ru 阅读全文

posted @ 2018-12-01 00:07 思此狂 阅读(133) 评论(0) 推荐(0)

2018年11月28日

rsyslog

摘要: 1 自定义一个rsyslog服务配置项 使用 logger -it jkktest "loginfo" 就能向 jkktest 的日志/var/log/jkktest.log 中写入日志信息了 丰富相关配置项,例如日志转储等 阅读全文

posted @ 2018-11-28 23:09 思此狂 阅读(130) 评论(0) 推荐(0)

2018年10月28日

rpm 校验

摘要: rpm 校验rpm包文件的完整性/正确性 [root@jinkk mysql]# rpm --checksig mysql-community-release-el7-5.noarch.rpm mysql-community-release-el7-5.noarch.rpm: sha1 md5 gp 阅读全文

posted @ 2018-10-28 17:27 思此狂 阅读(202) 评论(0) 推荐(0)

2018年6月3日

关于域名解析

摘要: 主机记录:主机记录就是域名前缀,常见用法有: www:解析后的域名为www.aliyun.com。 @:直接解析主域名 aliyun.com。 *:泛解析,匹配其他所有域名 *.aliyun.com。 mail:将域名解析为mail.aliyun.com,通常用于解析邮箱服务器。 二级域名:如:ab 阅读全文

posted @ 2018-06-03 18:28 思此狂 阅读(1021) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页

导航