Context
Usage
• Context[ ]给出了当前上下文。
• Context[symbol] 给出了一个符号出现的上下文。
Notes
• 当前上下文是$Context的值。
Further Examples
Every symbol (function or variable) in Mathematica is associated with a context. An explanation of how contexts works, and examples of context manipulation, are given in the Further Examples for Begin. Without an argument, Context returns the value of the current context (stored in $Context).
In[1]:=
|
Out[1]=
|
With a symbol as an argument, Context returns the context to which this symbol belongs.
In[2]:=
|
Out[2]=
|
|