pu369com

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

2021年8月21日

rust试一试native-windows-gui

摘要: git clone git@github.com:gabdube/native-windows-gui.git cd native-windows-gui/native-windows-gui # Running the tests from the workspace screws up the 阅读全文

posted @ 2021-08-21 23:35 pu369com 阅读(540) 评论(0) 推荐(0) 编辑

Git使用出现git@github.com: Permission denied (publickey). 处理

摘要: 以前处理过一次,时间长忘了,再记录一次 进入git bash界面然后:第一步,git config --global --list 验证邮箱与GitHub注册时输入的是否一致,没有没关系 第二步,通过git config --global user.name “yourname”,git confi 阅读全文

posted @ 2021-08-21 23:24 pu369com 阅读(312) 评论(0) 推荐(0) 编辑

rust 调用windows api

摘要: 代码: #[cfg(windows)] extern crate winapi; use std::io::Error; #[cfg(windows)] fn print_message(msg: &str) -> Result<i32, Error> { use std::ffi::OsStr; 阅读全文

posted @ 2021-08-21 22:43 pu369com 阅读(1513) 评论(0) 推荐(0) 编辑

rust:win10执行shell命令及GB18030decode解码utf8存盘

摘要: 费了点劲的知识点: 1 crate encoding处理汉字 2 Vec<u8>转&[u8] 代码(win10系统): extern crate encoding; use std::process::Command; use encoding::all::GB18030; use encoding 阅读全文

posted @ 2021-08-21 17:53 pu369com 阅读(472) 评论(0) 推荐(0) 编辑

正则表达式(Rust)

摘要: 代码 use regex::{Regex, Captures}; use itertools::Itertools; use std::error::Error; fn main() -> Result<(), Box<dyn Error>> { let s = "123-4567-89,987-6 阅读全文

posted @ 2021-08-21 11:20 pu369com 阅读(317) 评论(0) 推荐(0) 编辑

2021年8月20日

Unicode 和 UTF-8 有何区别

摘要: 比如 “我”这个字符。以二进制方式从文本文件中读,显示 :e6 88 91 也就是说, “我”的utf-8编码的Hex:'\xe6\x88\x91' 而用在线工具查,“我”的Unicode-Escape:'\u6211' 16进制的 6211 也就是 10进制的 25105 Unicode 和 UT 阅读全文

posted @ 2021-08-20 18:07 pu369com 阅读(2349) 评论(0) 推荐(0) 编辑

rust 读取文件

摘要: 1、逐行读文本 use std::fs::File; use std::io::{self, BufRead}; use std::path::Path; fn main() { // File hosts must exist in current path before this produce 阅读全文

posted @ 2021-08-20 17:31 pu369com 阅读(792) 评论(0) 推荐(0) 编辑

2021年8月19日

如何在Rust中打印变量的类型及类型转换实践

摘要: #![feature(core_intrinsics)] fn print_type_of<T>(_: T) { println!("{}", std::intrinsics::type_name::<T>() ); } fn main() { print_type_of(3); // prints 阅读全文

posted @ 2021-08-19 18:57 pu369com 阅读(804) 评论(0) 推荐(0) 编辑

rust遇到了error[E0554]: `#![feature]` may not be used on the stable release channel(切换nightly版本)

摘要: 参考:https://blog.51cto.com/u_14256460/2627326 从错误信息`#![feature]` may not be used on the stable release channel可以看出当前编译使用的channel还没有包含#![feature]功能,那咋办呢 阅读全文

posted @ 2021-08-19 12:48 pu369com 阅读(4238) 评论(0) 推荐(1) 编辑

2021年8月18日

利用github免费建立静态网站

摘要: 安装git并在cmd中执行: set https_proxy=127.0.0.1:1080 set http_proxy=127.0.0.1:1080 set GIT_SSL_NO_VERIFY=true 1 在github注册用户名、密码。 2 比如用户名是XX就在github上建立名为XX.gi 阅读全文

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

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

导航