文章分类 -  Python

Python
摘要:import logging,os import logging.handlers class Logger(): level_config={ 'debug': logging.DEBUG, 'info': logging.INFO, 'warning': logging.WARNING, 'er 阅读全文
posted @ 2021-01-13 11:26 howhy 阅读(273) 评论(0) 推荐(0) 编辑
摘要:from collections import deque from queue import Queue 其实queue也是用deque 阅读全文
posted @ 2019-12-05 14:33 howhy 阅读(2053) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-03 18:43 howhy 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-03 10:10 howhy 阅读(51) 评论(0) 推荐(0) 编辑
摘要:##socket非阻塞 import socket from urllib.parse import urlparse def get_url(url): url=urlparse(url) host=url.netloc path=url.path if not path: path="/" pr 阅读全文
posted @ 2019-12-02 17:21 howhy 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-30 15:11 howhy 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-30 14:52 howhy 阅读(2063) 评论(0) 推荐(0) 编辑
摘要:线程间通信queue 线程锁lock condition 阅读全文
posted @ 2019-11-30 10:21 howhy 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-29 15:17 howhy 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-28 19:56 howhy 阅读(97) 评论(0) 推荐(0) 编辑
摘要:代码示例2 阅读全文
posted @ 2019-11-28 19:34 howhy 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-28 19:01 howhy 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-28 18:09 howhy 阅读(63) 评论(0) 推荐(0) 编辑
摘要:list:大量数据情况下查找速度慢 并且随数据增加查找速度也越慢 dict:1、大量数据情况下查找速度快并且随数据增加查找速度变化不明显 2、dict的key和value值是可hash的类型 str tuple fronzenset 自己实现的__hash__类 3、dict的内存花销大 但是查询速 阅读全文
posted @ 2019-11-28 16:06 howhy 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-28 15:25 howhy 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-28 14:49 howhy 阅读(321) 评论(0) 推荐(0) 编辑
摘要:array 和list重要区别是 array只能存特定类型的数据(https://docs.python.org/3/library/array.html) list可以了放任何数据类型 array效率更高 阅读全文
posted @ 2019-11-28 14:02 howhy 阅读(60) 评论(0) 推荐(0) 编辑

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