找回密码
 加入
搜索
查看: 1716|回复: 0

[网络通信] 看见有人提问Eval操作数组却没有答案,给个小技巧

[复制链接]
发表于 2020-1-5 05:04:05 | 显示全部楼层 |阅读模式
#include <Array.au3>
Dim $test[2]=['a','b']
Assign('array', $test)
$temp=Eval('array')
$temp[0]='a0'
$temp[1]='b1'
Assign('array', $temp)
_ArrayDisplay($array)


弄个临时数组,重新再写回!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-19 13:47 , Processed in 0.069803 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表