Array:=[]
Array["A1","B1","C1"]:=1
Array["A1","B1","C2","D1"]:=2
Array["A1","B1","C2","D2","E1"]:=3
Array["A1","B1","C3","D1","E1"]:=4
Array["A1","B1","C3","D1","E2"]:=5
Array["A1","B1","C3","D1","E3"]:=6
Array["A1","B1","C3","D1","E4"]:=7
Array["A1","B2"]:=8
Array["A2","B1","C1","D1","E1"]:=9
Array["A3"]:=10
Array["A4","B1"]:=11
MsgBox, % ForArray(Array)

ForArray(obj, _Name:="") {
  for K, V in obj
    if IsObject(V)
      L := (_Name ? _Name "[" : "obj[") K, S .= ForArray(V, L)
    else
      L := (_Name ? _Name "[" : "obj[") K, S .= L "]:=" V "`n"
  return, S
}

 

声明:站内资源为整理优化好的代码上传分享与学习研究,如果是开源代码基本都会标明出处,方便大家扩展学习路径。请不要恶意搬运,破坏站长辛苦整理维护的劳动成果。本站为爱好者分享站点,所有内容不作为商业行为。如若本站上传内容侵犯了原著者的合法权益,请联系我们进行删除下架。