上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 125 下一页
摘要: class TreeNode: def __init__(self, val): self.val = val self.left = None self.right = None class OperationTree: def insert(self, root, val): if root is None:... 阅读全文
posted @ 2019-06-21 17:46 公众号python学习开发 阅读(348) 评论(0) 推荐(0)
摘要: a = [-2, 1, 3, 4, -7, 5, -6, 2, 7] def foo(arr): res = arr[0] # 保存最大的累计和 arr_sum = 0 # 保存累计和 for num in arr: if arr_sum > 0: arr_sum += num # 累计和为非负,有继续累加的意义 ... 阅读全文
posted @ 2019-06-21 17:12 公众号python学习开发 阅读(272) 评论(0) 推荐(0)
摘要: # 求解最优性的问题 # 线性动规 # 区域动归 a = [1, 3, 4, 5, 6, 2, 7] def foo(arr): if len(arr) <= 1: return 0 min_num = arr[0] max_num = 0 for item in arr: history = item - min_num... 阅读全文
posted @ 2019-06-21 17:11 公众号python学习开发 阅读(937) 评论(0) 推荐(0)
摘要: mysql基础知识语法汇总整理(二) 原文:https://www.cnblogs.com/cxx8181602/p/9525950.html 连接数据库操作 数据库操作 表的操作 数据操作 索引 外键 储存引擎 三范式 mysql基础知识语法汇总整理(二) 阅读全文
posted @ 2019-06-20 11:50 公众号python学习开发 阅读(295) 评论(0) 推荐(0)
摘要: mac使用frida 安装 https://github.com/frida/frida/releases 根据手机的cpu的版本,选择相应的文件,一般通过手机信息可以看到 我这里是frida-server-12.6.7-android-arm64.xz 下载地址 链接: https://pan.b 阅读全文
posted @ 2019-06-20 09:10 公众号python学习开发 阅读(4511) 评论(0) 推荐(0)
摘要: 原文:http://blog.yuccn.net/archives/625.html python3.6下使用urllib 的request进行url 请求时候,如果请求的是https,请求可以会出现“urllib.error.URLError: <urlopen error [SSL: CERTI 阅读全文
posted @ 2019-06-19 17:36 公众号python学习开发 阅读(3862) 评论(0) 推荐(0)
摘要: 安装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学习开发 阅读(3242) 评论(0) 推荐(1)
摘要: 代码基于3.8 阅读全文
posted @ 2019-06-16 14:04 公众号python学习开发 阅读(431) 评论(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学习开发 阅读(415) 评论(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学习开发 阅读(763) 评论(2) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 125 下一页