https://www.jianshu.com/p/2ac52fe2810e

//模拟do……while实现输出10次hello,world(先做后判断)
func jobDowhileMoni(){
    var i = 0
    for{
        fmt.Println("hello,world",i)
        i++
        if(i>=10){
            break
        }
    }
}

0 条评论

发表回复

您的电子邮箱地址不会被公开。