for循环控制 package main import( "fmt" ) func main(){ for i := 1; i<=10;i++{ fmt.Println("Hello,World", i) } } 基本语法: for 循环变量初始化; 循环条件; 循环变量迭代{ 循环操作