Tornado 6.5 Documentation
percent-decoded and is now a byte string. By default, this method decodes the argument as utf-8 and returns a unicode string, but this may be overridden in subclasses. This method is used as a filter for both get_argument() lifetime to the current browser session. Secure cookies may contain arbitrary byte values, not just unicode strings (unlike regular cookies) Similar to set_cookie, the effect of this method will not be seen near-equivalents in the standard library (the differences mainly relate to handling of bytes and unicode strings, and were more relevant in Python 2). In new code, the standard library functions are encouraged0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
url_escape() url_unescape()json_encode() json_decode() Byte/unicode conversions utf8() to_unicode() native_str() to_basestring() recursive_unicode() Miscellaneous functions linkify() squeeze() tornado percent-decoded and is now a byte string. By default, this method decodes the argument as utf-8 and returns a unicode string, but this may be overridden in subclasses. This method is used as a filter for both get_argument() lifetime to the current browser session. Secure cookies may contain arbitrary byte values, not just unicode strings (unlike regular cookies) Similar to set_cookie, the effect of this method will not be seen0 码力 | 437 页 | 405.14 KB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
compatible versions Adding rand v0.8.5 (available: v0.9.0) Compiling proc-macro2 v1.0.93 Compiling unicode-ident v1.0.17 Compiling libc v0.2.170 Compiling cfg-if v1.0.0 Compiling byteorder v1.5.0 Compiling 类型的大小为四个字节 (four bytes),并代表了一个 Unicode 标量值(Unicode Scalar Value),这意味着它可以比 ASCII 表示更多内容。在 Rust 中,带变音符号的字母 (Accented letters),中文、日文、韩文等字符,emoji(绘文字)以及零长度的空白字符都是 有效的 char 值。Unicode 标量值包含从 U+0000 到 U+D7FF 和 U+E000 U+E000 到 U+10FFFF 在内的值。 不过,“字符” 并不是一个 Unicode 中的概念,所以人直觉上的 “字符” 可能与 Rust 中的 char 并不符合。第八章的 “使用字符串储存 UTF-8 编码的文本” 中将详细讨论这个主题。 复合类型 复合类型(Compound types)可以将多个值组合成一个类型。Rust 有两个原生的复合类型: 元组(tuple)和数组(array)。0 码力 | 562 页 | 3.23 MB | 9 天前3
共 3 条
- 1