一、for…in 结构 for i in 0...4{ print(i) //使用到了变量 i } for _ in 0...1{ // 后期没有使用到变量,可以直接用个下划线 _ 占位就行了 print("hello") } 二、while 结构 var i : Int 0 while i < 5 { print("a") i 1 } //repeat…whil…
个人学习资源免费分享网站:http://xiaocaoshare.com/
public class App { public static void main(String[] args) { Map<String, List<Student>> map new HashMap<String, List<Student>>(); List<Student> …
属性(property): public string Name
{get{return _name;}set{_name value;}
} 简写为: public string Name { set; get;} 索引器(index): 索引器为C#程序语言中泪的一种成员,它是的对象可…