Go循环

每个编程语言都有一种进行循环的方式,Go也不例外。Go提供了for循环,用来对多种数据类型进行遍历。

Go没有提供while关键字。但是,Go的for循环语句完全可以替代while循环。

results matching ""

    No results matching ""