会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一起来学python
android逆向
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
53
54
55
56
57
58
59
60
61
···
125
下一页
2019年3月25日
想不到吧
摘要: ``` def 想不到吧(): def 阴(阴): yield '@' def 阳(阳): yield '*' yield from 阴(阳) yield from 阳(阳) yield from 阴(阴) for 艾克斯, _杠 in zip(想不到吧(), range(25...
阅读全文
posted @ 2019-03-25 14:30 公众号python学习开发
阅读(232)
评论(0)
推荐(0)
2019年3月21日
async_retrying
摘要: ``` from async_retrying import retry import aiohttp import asyncio @retry(attempts=6) async def fetch(): print(1) async with aiohttp.ClientSession() as session: async with session.ge...
阅读全文
posted @ 2019-03-21 17:18 公众号python学习开发
阅读(854)
评论(0)
推荐(0)
aiojobs
摘要: import asyncio import aiojobs async def coro(timeout): print(timeout) await asyncio.sleep(timeout) print(">>>>>>>") async def main(): scheduler = await aiojobs.create_scheduler() ...
阅读全文
posted @ 2019-03-21 16:12 公众号python学习开发
阅读(494)
评论(0)
推荐(0)
python字典不区分大小写
摘要: from multidict import CIMultiDict dic=CIMultiDict() dic["key"]="1234" print(dic["KEy"])
阅读全文
posted @ 2019-03-21 15:44 公众号python学习开发
阅读(3749)
评论(0)
推荐(1)
asyncio Queue的使用例子
摘要: import aiohttp import asyncio import async_timeout from urllib.parse import urljoin, urldefrag root_url = "http://python.org/" crawled_urls, url_hub = [], [root_url, "%s/sitemap.xml" % (root_url), ...
阅读全文
posted @ 2019-03-21 15:10 公众号python学习开发
阅读(2119)
评论(1)
推荐(0)
2019年3月18日
一份详细的asyncio入门教程
摘要: asyncio模块提供了使用协程构建并发应用的工具。它使用一种单线程单进程的的方式实现并发,应用的各个部分彼此合作, 可以显示的切换任务,一般会在程序阻塞I/O操作的时候发生上下文切换如等待读写文件,或者请求网络。同时asyncio也支持调度代码在将来的某个特定事件运行,从而支持一个协程等待另一个协
阅读全文
posted @ 2019-03-18 23:21 公众号python学习开发
阅读(2183)
评论(0)
推荐(2)
lzstring
摘要: ``` import lzstring ic = {"name": "root", "password": "123456"} x = lzstring.LZString() compressed = x.compressToBase64(str(ic)) print(compressed) decompressed = x.decompressFromBase64(compressed) p...
阅读全文
posted @ 2019-03-18 14:19 公众号python学习开发
阅读(954)
评论(0)
推荐(0)
2019年3月15日
motor helper
摘要:
阅读全文
posted @ 2019-03-15 13:00 公众号python学习开发
阅读(422)
评论(0)
推荐(0)
2019年3月12日
ajax-hook
摘要: ``` // ==UserScript== // @name ajax hook 调试 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match ht...
阅读全文
posted @ 2019-03-12 09:11 公众号python学习开发
阅读(1188)
评论(0)
推荐(0)
2019年3月5日
aiohttp的笔记之TCPConnector
摘要: TCPConnector class aiohttp.TCPConnector( , verify_ssl=True, fingerprint=None, use_dns_cache=True, ttl_dns_cache=10, family=0, ssl_context=None, local_
阅读全文
posted @ 2019-03-05 23:05 公众号python学习开发
阅读(2766)
评论(0)
推荐(0)
上一页
1
···
53
54
55
56
57
58
59
60
61
···
125
下一页
公告