
python
mannnn__
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python 多进程模式下的压力测试
import osimport timeimport loggingimport requestsimport threadingfrom multiprocessing import Managerfrom concurrent import futuresimport jsondownload_url = 'http://127.0.0.1:8080/'cpu_count ...转载 2019-07-12 17:25:07 · 955 阅读 · 0 评论 -
curl常用方法
1.curl 用法 Usage: curl [options...] <url> --abstract-unix-socket <path> Connect via abstract Unix domain socket --alt-svc <file name> Enable alt-svc with this cache file...原创 2019-07-24 11:04:51 · 883 阅读 · 0 评论 -
python使用sorted对dict排序
dict_ = {"a": 2, "b": 1, "c": 3}""" iterable: 待排序的可迭代集合 key: iterable中每一项中的第几个key reverse: true 降序,false 升序"""sorted(dict_.items(), key=lambda item: item[1])...原创 2019-09-06 08:29:02 · 1594 阅读 · 0 评论