上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 125 下一页
摘要: 安装jdk8 brew cask install adoptopenjdk8 安装jadx 编译安装 git clone https://github.com/skylot/jadx.git cd jadx ./gradlew dist 然后将build/jadx/bin加入到环境变量。 expor 阅读全文
posted @ 2019-06-19 15:14 公众号python学习开发 阅读(3249) 评论(0) 推荐(1)
摘要: 代码基于3.8 阅读全文
posted @ 2019-06-16 14:04 公众号python学习开发 阅读(433) 评论(0) 推荐(0)
摘要: ``` import asyncio import re import typing from concurrent.futures import Executor, ThreadPoolExecutor from urllib.request import urlopen DEFAULT_EXECUTOR = ThreadPoolExecutor(4) ANCHOR_TAG_PATTE... 阅读全文
posted @ 2019-06-15 18:29 公众号python学习开发 阅读(417) 评论(0) 推荐(0)
摘要: ``` import asyncio import functools from concurrent.futures.thread import ThreadPoolExecutor from requests_html import HTMLSession import sys session = HTMLSession() async def get_response(executor,... 阅读全文
posted @ 2019-06-15 18:01 公众号python学习开发 阅读(764) 评论(2) 推荐(0)
摘要: ``` import random import asyncio async def random_number_gen(delay, start, end): while True: yield random.randint(start, end) await asyncio.sleep(delay) async def main(): a... 阅读全文
posted @ 2019-06-15 16:57 公众号python学习开发 阅读(2027) 评论(0) 推荐(0)
摘要: 使用事件循环 Python3.4 采用了一个强大的框架来支持代码的并发执行: asyncio。这个框架使用事件循环来编排回调和异步任务。 事件循环位于事件循环策略的上下文中 这是 asyncio 所特有的概念。 下图是协程,事件循环和策略之间的相互作用 ![Coroutines, event loo 阅读全文
posted @ 2019-06-14 21:29 公众号python学习开发 阅读(5886) 评论(0) 推荐(1)
摘要: ``` import struct i = 1024 # s0为一个字符串,长度为4,即占四个字节,这样方便传输与保存二进制数据。 s0 = struct.pack(">I", i) print(s0) i2 = struct.unpack(">I",s0) print(i2) ``` 阅读全文
posted @ 2019-06-14 11:40 公众号python学习开发 阅读(577) 评论(0) 推荐(0)
摘要: 慢查询 生命周期 两个配置 三个命令 运维经验 生命周期 1.发送命令 2,排队执行命令因为单线程 3.执行命令 4.返回结果 慢查询发生在第三阶段 客户端超时并不一定有慢查询,但慢查询是客户端超时的一个因素。 慢查询的配置 showlog max len 慢查询就是在日志中记录运行比较慢的语句,这 阅读全文
posted @ 2019-06-13 17:09 公众号python学习开发 阅读(289) 评论(0) 推荐(0)
摘要: Redis常用配置 daemonize 》是否是后台进程 port 》对外端口 logfile 》Redis 系统日志 dir 》Redis 工作目录 Redis的链接 测试链接 使用ping返回PONG 查看配置 通过config get 命令可以查看 通过配置文件方式启动 找到redis所在的目 阅读全文
posted @ 2019-06-13 16:16 公众号python学习开发 阅读(207) 评论(0) 推荐(0)
摘要: ``` Dijkstra.狄杰斯特拉 import heapq import math def init_distance(graph, s): distance = {s: 0} for vertex in graph: if vertex != s: distance[vertex] = mat 阅读全文
posted @ 2019-06-11 16:15 公众号python学习开发 阅读(3968) 评论(1) 推荐(1)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 125 下一页