Rust
RGBMarco
时间能证明一切,如果不能帮助到别人,那就记录自己!
展开
-
rust N-Queens Algorithm
N皇后 rust-algorithmuse std::rc::Rc;use std::cell::RefCell;struct Queens { target:i32, results:Rc<RefCell<Vec<Vec<i32>>>>,}impl Queens { pub fn new() -> Queen...原创 2019-03-10 22:37:30 · 233 阅读 · 0 评论 -
Rust 爬虫入门
要通过rust爬虫最好先学习一下tokio库,此外还需要工具库hyper(发送请求,得到数据),html5ever(解析html),下面先上个例子,等有时间再发个实践的extern crate hyper_tls;extern crate html5ever;extern crate hyper;extern crate futures;use hyper_tls::HttpsCon...原创 2019-04-06 11:43:56 · 6765 阅读 · 5 评论