我是Julia语言的新手,之前使用过Matlab。
在Matlab中,当我输入 whos
命令时,我会得到当前作用域内的所有变量;并且,我可以将它们存储在另一个变量中,如 x=whos;
。在Julia中是否存在类似的命令呢?
以下是Matlab示例代码:
>> a=3;
>> b=4;
>> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
a 1x1 8 double
b 1x1 8 double
prefix 1x16 16 char
Total is 18 elements using 32 bytes.