add 07.2.md, 07.3.md, 07.4.md, 07.5.md

This commit is contained in:
chidouhu
2013-11-23 15:13:25 +08:00
parent b8d6e4d469
commit 22b640d2bf
8 changed files with 489 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package main
import "fmt"
func main() {
seasons := []string{"Spring", "Summer", "Autumn", "Winter"}
for ix, season := range seasons {
fmt.Printf("Season %d is: %s\n", ix, season)
}
var season string
for _, season = range seasons {
fmt.Printf("%s\n", season)
}
}