12 2020 档案

摘要:其中包含了很多示例,可以参考学习;地址:http://rosettacode.org/wiki/Category:Programming_Languages 阅读全文
posted @ 2020-12-28 17:05 天使不设防 阅读(108) 评论(0) 推荐(0) 编辑
摘要:ref 作用 1 import std.stdio, std.string; 2 3 void main() 4 { 5 string[] color=["red","blue","cyan","grey"]; 6 7 writeln("raw:",color); 8 write("m1:"); 9 阅读全文
posted @ 2020-12-17 20:04 天使不设防 阅读(133) 评论(0) 推荐(0) 编辑
摘要:各个情况下数据类型异同 1 import std.stdio; 2 import std.string; 3 4 void main(){ 5 6 auto a="auto_a"; //immutable(char)[] 7 auto b="auto_b.dup".dup; // char[] 8 阅读全文
posted @ 2020-12-14 22:04 天使不设防 阅读(157) 评论(0) 推荐(0) 编辑
摘要:刷论坛看到TIOBE排行榜,排名靠前的基本是C、C++、java、python之类的语言,常用的R语言近几年排名一路走高,前20基本变化不大。 后面发现第二十九位居然有个叫做D的语言,看了下和C语法很类似,也是系统级语言,写起来比C舒服,C用起来实在是太糟心了😔;有垃圾回 收机制,不用自己管理内存 阅读全文
posted @ 2020-12-12 22:21 天使不设防 阅读(486) 评论(0) 推荐(0) 编辑
摘要:枚举 1 fn main() { 2 let a_binding; 3 { 4 let x = 2; 5 a_binding = x * x; 6 } 7 println!("a binding: {}", a_binding); 8 9 let sn = Some(5); 10 let ss = 阅读全文
posted @ 2020-12-11 15:41 天使不设防 阅读(276) 评论(0) 推荐(0) 编辑
摘要:1 fn main() { 2 let mut demo = 12; 3 println!("{}",demo); 4 demo = 21; // 值可变,数据类型不可变 5 println!("{}",demo); 6 7 let mut demo = true; // 利用shadow 覆盖de 阅读全文
posted @ 2020-12-10 19:59 天使不设防 阅读(164) 评论(0) 推荐(0) 编辑
摘要:一个大神的方差分析总结。 阅读全文
posted @ 2020-12-10 16:42 天使不设防 阅读(73) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示