摘要: 代码如下: use std::collections::HashMap; fn main() { let text = "Hello world good world"; let mut map = HashMap::new(); for word in text.split_whitespace( 阅读全文
posted @ 2022-04-10 11:48 诡局 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Enpuz在线英语句子语法分析 http://enpuz.com/ 阅读全文
posted @ 2021-06-01 08:46 诡局 阅读(2320) 评论(0) 推荐(0) 编辑
摘要: --快速查看表结构 SELECT CASE WHEN col.colorder = 1 THEN obj.name ELSE '' END AS 表名, col.colorder AS 序号 , col.name AS 列名 , ISNULL(ep.[value], '') AS 列说明 , t.n 阅读全文
posted @ 2021-04-19 14:20 诡局 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 转载自 https://blog.csdn.net/xt0522/article/details/104610532/ sql语句如下,可以根据自己需求添加筛选条件 SELECT [job].[job_id] AS '作业唯一标识符' ,[job].[name] AS '作业名称' ,[jstep] 阅读全文
posted @ 2021-04-19 13:55 诡局 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 1、网上搜了下歌词,歌词原文如下: The Twelve Days Of Christmas - Songtime Kids On the first day of Christmas My true love sent to me A partridge in a pear tree On the 阅读全文
posted @ 2021-03-11 10:44 诡局 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 斐波那契数列(Fibonacci sequence),又称黄金分割数列, 因数学家莱昂纳多·斐波那契(Leonardoda Fibonacci)以兔子繁殖为例子而引入,故又称为“兔子数列” 指的是这样一个数列:0、1、1、2、3、5、8、13、21、34、…… 这个数列从第3项开始,每一项都等于前两 阅读全文
posted @ 2021-03-10 17:25 诡局 阅读(378) 评论(2) 推荐(0) 编辑
摘要: 首先明确摄氏温度与华氏温度的转换规则 华氏度=摄氏度*1.8+32 摄氏度=(华氏度-32)/1.8 然后就可以开始编码,首先要引入标准库中的io模块,因为我们要让用户输入一个温度, 当用户输入后,我们潜规则默认后缀带C为摄氏度,带F为华氏度。 以下为编程注意点: 一、**stdin().read_ 阅读全文
posted @ 2021-03-02 21:00 诡局 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 用rust打印一个99乘法表 fn main() { for i in 1..10 { for j in 1..i + 1 { print!("{} x {} = {}\t", j, i, j * i); } println!(); } } 运行 阅读全文
posted @ 2020-10-29 14:51 诡局 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 转载自B站 https://www.bilibili.com/read/cv5512692 https://wallhaven.cc/ https://unsplash.com http://wallls.com/tag/lights/ https://wall.alphacoders.com/?l 阅读全文
posted @ 2020-09-24 11:38 诡局 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 出处《深入浅出Rust》 Rust中一系列的宏,如 println! format! write! writeln! 等,都是用的同样的格式控制规则 fn main() { println!("{}", 1); //默认用法,打印display println!("{:o}", 9); //八进制 阅读全文
posted @ 2020-09-21 11:20 诡局 阅读(565) 评论(0) 推荐(0) 编辑