1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| if score >= 60 { fmt.Println("及格") }
switch day { case 1: fmt.Println("周一") case 2: fmt.Println("周二") default: fmt.Println("其他") }
for i := 0; i < 5; i++ { fmt.Println(i) }
for k, v := range m { fmt.Println(k, v) }
|