编辑代码
Swift代码
5.2.4
运行
//函数1:初始化草地
func
initGame
()
{ group.removeAl1()
//用于清空数组
for
_ in
0.
.<rows { group.
append
(
"0"
) } } }