array_x = [1,2,3]
map_x = ["a":1,"b":2]
for (x in array) {
println(x)
}
for(k,v in map_x) {
println(k)
}
get 获取字典值:
m = ["a":1, "b":2]
println(m.get("c", "motfind"))
2023-11-10 10:09:40
array_x = [1,2,3]
map_x = ["a":1,"b":2]
for (x in array) {
println(x)
}
for(k,v in map_x) {
println(k)
}
get 获取字典值:
m = ["a":1, "b":2]
println(m.get("c", "motfind"))