Tornado 6.5 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched. Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests beginning with /pictures/ to the prefix /photos/ instead: app = tornado.web0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
which contains (at least) a regular expression and a handler class. Order matters; the first matching rule is used. If the regular expression contains capturing groups, these groups are the path arguments these methods will be called with arguments corresponding to the capturing groups of the routing rule that matched.Within a handler, call methods such as RequestHandler.render or RequestHandler.write com/my-app-id")), ]) RedirectHandler also supports regular expression substitutions. The following rule redirects all requests beginning with /pictures/ to the prefix /photos/ instead: app = tornado.web0 码力 | 437 页 | 405.14 KB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
Running `target/debug/hello_cargo` Hello, world! Cargo 还提供了一个叫 cargo check 的命令。该命令快速检查代码确保其可以编译,但并不产 生可执行文件: $ cargo check Checking hello_cargo v0.1.0 (file:///projects/hello_cargo) Finished 32 secs 为什么你会不需要可执行文件呢?通常 cargo check 要比 cargo build 快得多,因为它省略了 生成可执行文件的步骤。如果你在编写代码时持续的进行检查,cargo check 可以让你快速了 解现在的代码能不能正常通过编译!为此很多 Rustaceans 编写代码时定期运行 cargo check 确保它们可以编译。当准备好使用可执行文件时才运行 cargo build。 Cargo 内容: • 可以使用 cargo new 创建项目。 • 可以使用 cargo build 构建项目。 • 可以使用 cargo run 一步构建并运行项目。 • 可以使用 cargo check 在不生成二进制文件的情况下构建项目来检查错误。 • 有别于将构建结果放在与源码相同的目录,Cargo 会将其放到 target/debug 目录。 使用 Cargo 的一个额外的优点是,不论你0 码力 | 562 页 | 3.23 MB | 9 天前3
共 3 条
- 1