摘要: 打开听写 创建脚本 创建脚本 #1 简单 set fileInfo to do shell script "say 主人,你发生什么事了" #2 复杂 set fileInfo to do shell script "/usr/local/bin/python3 /Users/sun/Documen 阅读全文
posted @ 2020-10-28 20:26 该显示昵称已被使用了 阅读(142) 评论(0) 推荐(0)
摘要: 方法1. def get_all_news(self, response, file): rm_list = [ # r'</', # r'p>', # r'<', ] ret = response.xpath( '//p[not (img)][not (a)][position()>5] | // 阅读全文
posted @ 2020-10-28 07:02 该显示昵称已被使用了 阅读(359) 评论(0) 推荐(0)
摘要: 常用 #看cpu cat /proc/cpuinfo #看时间 date +"%Y-%m-%d %H:%M:%S" # 参看文件的创建、修改等时间 stat filename.txt #看指定目录大小 du -sh du -h --max-depth=0 du -s * | sort -nr | h 阅读全文
posted @ 2020-10-27 09:11 该显示昵称已被使用了 阅读(356) 评论(0) 推荐(1)
摘要: https://www.cnblogs.com/zhuchenglin/p/8686924.html /bin 二进制可执行命令 /dev 设备特殊文件 /etc 系统管理和配置文件 /etc/rc.d 启动的配置文件和脚本 /home 用户主目录的基点,比如用户user的主目录就是/home/us 阅读全文
posted @ 2020-10-27 09:08 该显示昵称已被使用了 阅读(82) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/0d4bed0f37ab alias: cmd: \config\user-aliases.cmd bash:\config\user_profile.sh 阅读全文
posted @ 2020-10-25 10:22 该显示昵称已被使用了 阅读(128) 评论(0) 推荐(0)
摘要: https://www.ibm.com/developerworks/cn/linux/l-cn-sshforward/ -L(local) 在 SSH Client(C) 执行下列命令来建立 SSH 连接以及端口转发: $ ssh -g -L 7001:<B>:389 <D> 然后在我们的应用客户 阅读全文
posted @ 2020-10-24 08:42 该显示昵称已被使用了 阅读(209) 评论(0) 推荐(0)
摘要: 0.multiprocessing 多进程的使用 from multiprocessing import Pool, cpu_count import time build_links = [1,2,3,4,5,6,7,8] auth = 'auth' def test(url, auth): ti 阅读全文
posted @ 2020-10-20 20:18 该显示昵称已被使用了 阅读(94) 评论(0) 推荐(0)
摘要: # pip3 install ping3 from ping3 import ping ping_ok = lambda ip: False if ping(dest_addr=ip) is None else True print(ping_ok('192.168.11.1')) 阅读全文
posted @ 2020-10-19 21:28 该显示昵称已被使用了 阅读(208) 评论(0) 推荐(0)
摘要: for i in range(20): challenge_pin = get_challenge_pin(url) if challenge_pin is not None: pin = challenge_pin + "test" + challenge_pin try: password = 阅读全文
posted @ 2020-10-19 21:00 该显示昵称已被使用了 阅读(164) 评论(0) 推荐(0)
摘要: xml.dom.minidom中的使用 pretty_print = lambda data: '\n'.join([line for line in xml.dom.minidom.parseString(data).toprettyxml(indent=' '*2).split('\n') if 阅读全文
posted @ 2020-10-19 17:20 该显示昵称已被使用了 阅读(251) 评论(0) 推荐(0)