Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
Rust学习笔记记录
Day 1 入门1、 rust 环境搭建2、rust 创建工程 cargo new xxx 、cargo build (–release) 、cargo run、cargo check.
3、错误处理 except 相当于 go的panic
123456789match xxx { OK(_)=>{},Err(_)=>{} }; 相当于if ok{}else{}
4、包管理在toml文件下添加指定包 回到cargo.io去索引 cargo update 更新索引。
包函数的引用 String::new() 用“::”分割
5、let mut默认新建变量为不可变变量,如要修改需要加上mut
6、loop { continue ;break} 相当于go的 for {continue break}
Day2 基础概念以及所有权1、shadowing隐式变量 及用相同的变量名重新声明一次,在后续的代码中 改变量名即是代表新的变量。
let 声 ...
