ValueQ
Usage
• 如果一个值已经对expr定义,ValueQ[expr]给出True,否则给出False。
Notes
• ValueQ 有属性 HoldFirst. • 当它要作为Mathematica输入而被键入时,如果expr没有改变,ValueQ给出False。 • 参见 Mathematica 全书 : 节 2.3.5.
Further Examples
At the start of a new session, no values have been defined for symbols such as xx.
In[1]:=
|
Out[1]=
|
In[2]:=
|
Out[2]=
|
In[3]:=
|
Out[3]=
|
In[4]:=
|
In[5]:=
|
Out[5]=
|
|