如何在 q 脚本中加载多个脚本?
How to load multiple scripts inside a q-script?
我想在同一个脚本中加载多个脚本:
我可以运行这个:
\l first_script.q
/ more q code
但是如果我尝试 运行 这个:
\l first_script.q;
\l second_script.q;
/ more q code
...它解析';'作为文件名的一部分。有谁知道加载多个 q 文件的方法吗?
您可以使用system
加载文件:
system "l first_script.q";
system "l second_script.q";
您也可以在行尾删除 ;
\l first_script.q
\l second_script.q
q
加载脚本时不需要这些存在
我想在同一个脚本中加载多个脚本:
我可以运行这个:
\l first_script.q
/ more q code
但是如果我尝试 运行 这个:
\l first_script.q;
\l second_script.q;
/ more q code
...它解析';'作为文件名的一部分。有谁知道加载多个 q 文件的方法吗?
您可以使用system
加载文件:
system "l first_script.q";
system "l second_script.q";
您也可以在行尾删除 ;
\l first_script.q
\l second_script.q
q
加载脚本时不需要这些存在