Go lang 學習第三篇for循環,if/else分支,分支結構

1、for循環,for是GO中惟一的循環結構git package main import "fmt" func main(){ //這裏講解for循環最經常使用的三個方式 //最經常使用的方式,帶單個循環條件 i := 1 for i<=3{ fmt.Println(i) i = i+1 } //經典的初始化條件後續形式for循環 for j := 7; j <=
相關文章
相關標籤/搜索