pu369com

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 32 下一页

2021年8月18日

rust之#[derive(Debug)]

摘要: 参考:https://rust-by-example.budshome.com/hello/print/print_debug.html cargo new hello main.rs #[derive(Debug)] struct Person<'a> { name: &'a str, age: 阅读全文

posted @ 2021-08-18 16:29 pu369com 阅读(2526) 评论(0) 推荐(0) 编辑

rust创建自己的库文件

摘要: 参考 https://blog.csdn.net/quicmous/article/details/113829830 1 创建工程 选择合适的文件夹,执行下面的命令: cargo new hello cargo new hellolib --lib 2. 源代码 hellolib/src/lib. 阅读全文

posted @ 2021-08-18 15:28 pu369com 阅读(334) 评论(0) 推荐(0) 编辑

Rust 的宏

摘要: 参考https://www.cnblogs.com/praying/p/14457360.html https://zhuanlan.zhihu.com/p/342408254 (Rust过程宏入门(一)及后续) https://dengjianping.github.io/2019/02/28/% 阅读全文

posted @ 2021-08-18 12:54 pu369com 阅读(82) 评论(0) 推荐(0) 编辑

2021年8月17日

Rust 学习之 Package、Crate、Module

摘要: Shesh's blog的那篇Clear explanation of Rust’s module system写的太好了。 详见http://www.sheshbabu.com/posts/rust-module-system/ 为加深理解,实际操作一下,直接做成最终版本项目结构: 1 执行 ca 阅读全文

posted @ 2021-08-17 18:10 pu369com 阅读(178) 评论(0) 推荐(0) 编辑

2021年8月16日

如何从Rust发出HTTP请求

摘要: 参考 https://blog.csdn.net/weixin_34902131/article/details/112822347 1、在https://docs.rs/ 搜索 hyper , 例子中说 有一个 full client example. 2、github被q, 到https://h 阅读全文

posted @ 2021-08-16 18:48 pu369com 阅读(1231) 评论(0) 推荐(0) 编辑

2021年8月13日

rust hello world --引入第三方库或 crates

摘要: 1 hello world 的例子可参考 https://kaisery.github.io/trpl-zh-cn/ 及 https://rust-by-example.budshome.com/index.html 2、下面参考 https://www.twle.cn/c/yufei/rust/r 阅读全文

posted @ 2021-08-13 19:16 pu369com 阅读(1321) 评论(0) 推荐(0) 编辑

2021年8月12日

github连接超时

摘要: 参考 https://blog.csdn.net/weixin_45942304/article/details/106655158 1 修改 C:\Windows\System32\drivers\etc\host 加入以下内容 #github192.30.255.112 github.com g 阅读全文

posted @ 2021-08-12 16:51 pu369com 阅读(67) 评论(0) 推荐(0) 编辑

2021年8月11日

win10下 Rust 环境搭建

摘要: 参考 菜鸟教程 https://www.runoob.com/rust/cargo-tutorial.html 1、安装最新版的 Rust 编译工具和 Visual Studio Code。 Rust 编译工具:https://www.rust-lang.org/zh-CN/tools/instal 阅读全文

posted @ 2021-08-11 18:40 pu369com 阅读(416) 评论(0) 推荐(0) 编辑

2021年3月26日

cmd命令行批量修改文件名后缀

摘要: 昨天一个同事想把几千个文件的后缀改为.mp3,他的电脑还是winxp 想到的最简单办法当然是批处理,但是忘了命令怎么写了。上网找到如下代码: @echo off for /f %%i in ('dir /b *.*') do (ren %%i %%i.mp3) 其中,/f 参数表示循环操作,/b 表 阅读全文

posted @ 2021-03-26 12:09 pu369com 阅读(634) 评论(0) 推荐(0) 编辑

2020年9月14日

golang网页版简易资源管理器及执行cmd

摘要: package main import ( "fmt" "net/http" "os/exec" "strings" "golang.org/x/text/encoding/simplifiedchinese" ) func A(s string) string { s = s[1:] str0 : 阅读全文

posted @ 2020-09-14 18:21 pu369com 阅读(239) 评论(0) 推荐(0) 编辑

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 32 下一页

导航