摘要: 1、参考来源 https://docs.python.org/zh-cn/3.9/reference/datamodel.html?highlight=aiter#asynchronous-iterators 2、代码示例: 1 # -*- coding: utf-8 -*- 2 """ 3 Fil 阅读全文
posted @ 2022-09-24 17:01 小粉优化大师 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1、使用前提 将不支持异常的模板与asyncio结合使用【默认是使用线程池+事件循环】 2、同时下载3张图片的示例 1 # -*- coding: utf-8 -*- 2 """ 3 File Name : test 4 Description : 5 Author : Administrator 阅读全文
posted @ 2022-09-24 16:46 小粉优化大师 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1、来源参考 参考官方文档示例 :https://docs.python.org/3.9/library/asyncio-eventloop.html#asyncio.loop.run_in_executor 2、代码示例 1 # -*- coding: utf-8 -*- 2 """ 3 File 阅读全文
posted @ 2022-09-24 15:57 小粉优化大师 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 报错信息: 2021-06-16T03:32:40.954339Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: 'user' (errno: 2 - No such file or dir 阅读全文
posted @ 2021-06-18 23:01 小粉优化大师 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: 1、问题 ModuleNotFoundError: No module named 'grp' 2 、解决方法 因为Windows Python3.8.x没有grp模块,所在需要在导入模块做系统类型的判断。 import platform if 'Linux' in platform.system( 阅读全文
posted @ 2021-06-15 23:32 小粉优化大师 阅读(2647) 评论(0) 推荐(0) 编辑
摘要: 1、校验的数据略 2、编写awk代码[root@mq1 mnt]# cat parser.awk BEGIN { total = 0; } { a[$1]++ } END { for(i in a) { print i,a[i] | "sort -r -n -k 2"; total+=a[i] } 阅读全文
posted @ 2021-03-18 16:29 小粉优化大师 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1、校验的数据 [root@mq1 sh]# vi ip_data.txt 192.168.1.200 202.106.0.20 300.36.190.5 222222222222 192.168.1.300 200.2.2 192.168.100.100 asdfladjfladsf 132123 阅读全文
posted @ 2021-03-12 17:43 小粉优化大师 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-02-24 15:39 小粉优化大师 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/mingkoukou/article/details/82870960 阅读全文
posted @ 2021-02-24 14:16 小粉优化大师 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-25 13:16 小粉优化大师 阅读(185) 评论(0) 推荐(0) 编辑