The Dangerous Flask Hsiaoming Yang{ "alg": "HS256", "exp": 1568355992, "iat": 1516239022, } • HS256, HS384, HS512 • RS256, RS384, RS512 • ES256, ES384, ES512 • PS256, PS384, PS512 alg alg is defined sign method Json Web0 码力 | 38 页 | 2.75 MB | 1 年前3
 Python3 基础教程 - 廖雪峰rs = yield from cur.fetchmany(size) else: rs = yield from cur.fetchall() yield from cur.close() logging.info('rows returned: %s' % len(rs)) return return rs SQL 语句的占位符是?,而 MySQL 的占位符是%s,select()函数在内部 自动替换。注意要始终坚持使用带参数的 SQL,而不是自己拼接 SQL 字符串,这样可以防止 SQL 注入攻击。 注意到 yield from 将调用一个子协程(也就是在一个协程中调用另一个 协程)并直接获得子协程的返回结果。 Python3 基础教程【完整版】 http://www key. ' rs = yield from select('%s where `%s`=?' % (cls.__select__, cls.__primary_key__), [pk], 1) if len(rs) == 0: return None return cls(**rs[0]) User 类现在就可以通过类方法实现主键查找:0 码力 | 531 页 | 5.15 MB | 1 年前3
 Tornado 6.1 Documentation
# https://github.com/python/cpython/blob/v3.8.0/Lib/selectors.py#L312- L317 rs, ws, xs = select.select(to_read, to_write, to_write) ws = ws + xs except getattr(errno, "WSAENOTSOCK", errno.EBADF): rs, _, _ = select.select([self._waker_r.fileno()], [], [], 0) if rs: ws = [] else: call_soon_threadsafe(self._handle_select, rs, ws) def _handle_select( self, rs: List["_FileDescriptorLike"], ws: List["_FileDescriptorLike"] ) -> None: for r in rs: self._handle_event(r0 码力 | 931 页 | 708.03 KB | 1 年前3
 Mypy 1.8.0 Documentationthe type of "cs" from: a, b, *cs = 1, 2 # error: Need type annotation for "cs" rs: list[int] # no assignment! p, q, *rs = 1, 2 # OK 1.5.3 Explicit types for collections The type checker cannot always0 码力 | 234 页 | 902.89 KB | 1 年前3
 Mypy 1.10.0+dev Documentationthe type of "cs" from: a, b, *cs = 1, 2 # error: Need type annotation for "cs" rs: list[int] # no assignment! p, q, *rs = 1, 2 # OK Explicit types for collections The type checker cannot always infer0 码力 | 318 页 | 270.84 KB | 1 年前3
 Mypy 1.8.0 Documentationthe type of "cs" from: a, b, *cs = 1, 2 # error: Need type annotation for "cs" rs: list[int] # no assignment! p, q, *rs = 1, 2 # OK Explicit types for collections The type checker cannot always infer0 码力 | 318 页 | 271.55 KB | 1 年前3
 Mypy 1.10.0+dev Documentationthe type of "cs" from: a, b, *cs = 1, 2 # error: Need type annotation for "cs" rs: list[int] # no assignment! p, q, *rs = 1, 2 # OK 1.5.3 Explicit types for collections The type checker cannot always0 码力 | 234 页 | 913.89 KB | 1 年前3
 python3学习手册02 STX 28 1C FS 54 36 6 80 50 P 106 6A j 3 03 ETX 29 1D GS 55 37 7 81 51 Q 107 6B k 4 04 EOT 30 1E RS 56 38 8 82 52 R 108 6C l 5 05 ENQ 31 1F US 57 39 9 83 53 S 109 6D m 6 06 ACK 32 20 空格 58 3A : 840 码力 | 213 页 | 3.53 MB | 1 年前3
 Jupyter Notebook 6.2.0 DocumentationIGEi yWcXJ2qL9kfAowsMKsA07UAJJ4FLZagVeLByyDQiXgprBF LoytLhcAlVwFDLQ6zkbS9V/xz00NU5G0PUKXC6BCJkaKw RS4MjUCrxYGsh0Zk4agm7s8u4Vpw7KUkRlbl04NYAFSJhIut 3FiN61ZdqWo4CABqrYyU6wxr/3KaR0yfIlTl47RKUG+OEhM wKSU0 码力 | 283 页 | 4.07 MB | 1 年前3
 Jupyter Notebook 6.4.4 DocumentationIGEi yWcXJ2qL9kfAowsMKsA07UAJJ4FLZagVeLByyDQiXgprBF LoytLhcAlVwFDLQ6zkbS9V/xz00NU5G0PUKXC6BCJkaKw RS4MjUCrxYGsh0Zk4agm7s8u4Vpw7KUkRlbl04NYAFSJhIut 3FiN61ZdqWo4CABqrYyU6wxr/3KaR0yfIlTl47RKUG+OEhM wKSU0 码力 | 293 页 | 4.08 MB | 1 年前3
共 34 条
- 1
 - 2
 - 3
 - 4
 













