摘要: 变量遮蔽 shadowing fn type_of<T>(_: &T) -> String { format!("{}", std::any::type_name::<T>()) } fn print<T: std::fmt::Display>(x: &T) { println!("{}\tsize 阅读全文
posted @ 2022-09-12 15:24 BuzzWeek 阅读(38) 评论(0) 推荐(0) 编辑
摘要: Python3 web服务 # 当前文件夹下命令行执行,这里使用8080端口,或者指定任意其它未被占用的端口 python3 -m http.server 8080 # 打开浏览器访问文件夹内容 http://127.0.0.1:8080 Python2 web服务 python -m Simple 阅读全文
posted @ 2022-09-12 10:28 BuzzWeek 阅读(30) 评论(0) 推荐(0) 编辑