|
30精币
易语言模拟加速度传感器数据[{"x":"0.109","y":"-0.524","z":"-0.847"},{"x":"-0.004","y":"-0.575","z":"-0.807"},{"x":"-0.011","y":"-0.558","z":"-0.820"},{"x":"-0.019","y":"-0.544","z":"-0.831"},{"x":"-0.034","y":"-0.555","z":"-0.829"},{"x":"-0.037","y":"-0.555","z":"-0.834"},{"x":"-0.032","y":"-0.542","z":"-0.837"},{"x":"0.123","y":"-0.639","z":"-0.749"},{"x":"0.008","y":"-0.615","z":"-0.779"},{"x":"0.095","y":"-0.691","z":"-0.715"},{"x":"0.164","y":"-0.663","z":"-0.754"},{"x":"-0.093","y":"-0.295","z":"-0.944"},{"x":"-0.033","y":"-0.643","z":"-0.759"},{"x":"-0.118","y":"-0.734","z":"-0.668"},{"x":"-0.061","y":"-0.629","z":"-0.762"},{"x":"-0.070","y":"-0.625","z":"-0.779"},{"x":"-0.060","y":"-0.627","z":"-0.792"},{"x":"-0.090","y":"-0.630","z":"-0.747"},{"x":"0.268","y":"-0.638","z":"-0.719"},{"x":"0.371","y":"-0.679","z":"-0.701"},{"x":"0.187","y":"-0.622","z":"-0.744"}]
|
最佳答案
查看完整内容
[e=0].版本 2
.支持库 spec
.子程序 _按钮1_被单击
.局部变量 json, 类_json
.局部变量 n, 整数型
.局部变量 a, 整数型
json.加成员 (“{}”, “”, 真, )
.计次循环首 (21, n)
json.置属性 (“[” + 到文本 (n - 1) + “]”, “{}”, 真)
置随机数种子 ()
a = 取随机数 (4, 700)
json.置属性 (“['” + 到文本 (n - 1) + “']['x']”, “0.” + 到文本 (a), )
置随机数种子 ()
a = 取随机数 ( ...
|