09 2022 档案
摘要:变量遮蔽 shadowing fn type_of<T>(_: &T) -> String { format!("{}", std::any::type_name::<T>()) } fn print<T: std::fmt::Display>(x: &T) { println!("{}\tsize
阅读全文
摘要:Python3 web服务 # 当前文件夹下命令行执行,这里使用8080端口,或者指定任意其它未被占用的端口 python3 -m http.server 8080 # 打开浏览器访问文件夹内容 http://127.0.0.1:8080 Python2 web服务 python -m Simple
阅读全文
摘要:bash代理 $ vi ~/.bashrc # http代理 export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 ftp_proxy=http://127.0.0.1:7890 all_proxy=soc
阅读全文
摘要:Rust初次安装 Rustup 镜像源设置 # 添加配置 $ vi ~/.zshrc export RUSTUP_DIST_SERVER="https://rsproxy.cn" export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup" # 加载配置
阅读全文