Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将数据保存到文件中:
a: 0 b: 10 c: 20 d: 30 save %redout.txt [a b c d]
我希望文件包含这些值。但是,该文件包含:
a b c d
如何将变量值而不是变量名保存到文件中?
您正在保存一个尚未评估的块。通常,您会先减少块以获取值,然后再保存它们。
所以,
Save %myfile.txt reduce [a b c d]
如果您想要一个带有变量的可加载文件,请使用save/all
save/all