Tornado 6.5 Documentation
notes What’s new in Tornado 6.5.1 What’s new in Tornado 6.5.0 What’s new in Tornado 6.4.2 What’s new in Tornado 6.4.1 What’s new in Tornado 6.4.0 What’s new in Tornado 6.3.3 What’s new in Tornado 6.3 3.2 What’s new in Tornado 6.3.1 What’s new in Tornado 6.3.0 What’s new in Tornado 6.2.0 What’s new in Tornado 6.1.0 What’s new in Tornado 6.0.4 What’s new in Tornado 6.0.3 What’s new in Tornado 6.0.2 What’s What’s new in Tornado 6.0.1 What’s new in Tornado 6.0 What’s new in Tornado 5.1.1 What’s new in Tornado 5.1What’s new in Tornado 5.0.2 What’s new in Tornado 5.0.1 What’s new in Tornado 5.0 What’s new in Tornado0 码力 | 437 页 | 405.14 KB | 2 月前3Tornado 6.5 Documentation
the queue begins containing only base_url. When a worker fetches a page it parses the links and puts new ones in the queue, then calls task_done to decrement the counter once. Eventually, a worker fetches %s" % url) html = response.body.decode(errors="ignore") return [urljoin(url, remove_fragment(new_url)) for new_url in get_links(html)] def remove_fragment(url): pure_url, frag = urldefrag(url) return pure_url add(current_url) for new_url in urls: # Only follow links beneath the base URL (continues on next page) 6.1. User’s guide 21Tornado Documentation, Release 6.5.1 (continued from previous page) if new_url.startswith(base_url):0 码力 | 272 页 | 1.12 MB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
Rust 包。要运行这些示例,你需要保持网络连接, 或者事先下载好这些依赖。要提前下载依赖,可以运行以下命令。(我们稍后会详细解释 cargo 是什么,以及这些命令分别的作用。) $ cargo new get-dependencies $ cd get-dependencies $ cargo add rand@0.8.5 trpl@0.2.0 这会将这些包的下载结果缓存起来,因此你之后就不需要再下载它们了。运行完该命令后,你 Cargo 创建一个新项目,然后看看与上面的 “Hello, world!” 项目有什么不同。回到 projects 目录(或者你存放代码的目录)。接着,可在任何操作系统下运行以下命令: $ cargo new hello_cargo $ cd hello_cargo 第一行命令新建了名为 hello_cargo 的目录和项目。我们将项目命名为 hello_cargo,同时 Cargo 在一个同名目录中创建项目文件。 git 仓库中运行 cargo new,则这些 git 相关文件则不会生成;可以通过运行 cargo new --vcs=git 来覆盖这些行为。 注意:git 是一个常用的版本控制系统(version control system,VCS)。可以通过 --vcs 参数使 cargo new 切换到其它版本控制系统(VCS),或者不使用 VCS。运行 cargo new --help 查看可用的选项。0 码力 | 562 页 | 3.23 MB | 8 天前3
共 3 条
- 1