Tornado 6.5 Documentation
RequestHandler.request The tornado.httputil.HTTPServerRequest object containing additional request parameters including e.g. headers and body data. RequestHandler.path_args RequestHandler.path_kwargs The set_status(status_code: int, reason: str | None = None) → None Sets the status code for our response. Parameters • status_code (int) – Response status code. • reason (str) – Human-readable reason phrase describing will not be seen until the following request. Changed in version 3.2: Added the path and domain parameters. Changed in version 6.3: Now accepts all keyword arguments that set_cookie does. Deprecated since0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
RequestHandler.request The tornado.httputil.HTTPServerRequest object containing additional request parameters including e.g. headers and body data. RequestHandler.path_args RequestHandler.path_kwargs The [https://docs.python.org/3/library/constants.html#None] Sets the status code for our response.Parameters:: status_code (int [https://docs.python.org/3/library/functions.html#int]) – Response status code will not be seen until the following request. Changed in version 3.2: Added the path and domain parameters. Changed in version 6.3: Now accepts all keyword arguments that set_cookie does. Deprecated since0 码力 | 437 页 | 405.14 KB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
main 函数中的代码会按顺序执行。首先,打印 “Hello, world!” 信息,然后调用 another_function 函数并打印它的信息。 参数 我们可以定义为拥有 参数(parameters)的函数,参数是特殊变量,是函数签名的一部分。 当函数拥有参数(形参)时,可以为这些参数提供具体的值(实参)。技术上讲,这些具体值 被称为参数(arguments),但是在日常交流中,人们倾向于不区分使用 Self::Output; } 这些代码看来应该很熟悉:一个带有一个方法和一个关联类型的 trait。新增的部分是 Rhs=Self:这个语法叫做 默认类型参数(default type parameters)。Rhs 是一个泛型类型参 数(“right-hand side” 的缩写),它用于定义 add 方法中的 rhs 参数。如果实现 Add trait 时 不指定 Rhs 的具体类型,Rhs0 码力 | 562 页 | 3.23 MB | 9 天前3
共 3 条
- 1