此为 Mathematica 4 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

ClearAttributes

Usage

ClearAttributes[s, attr] 从符号 s的属性列表中移走attr.


Notes

ClearAttributes 修改 Attributes[s].
ClearAttributes[s,   ,  , ...  ]一次移走几个属性.
ClearAttributes[  ,  , ...  , attrs]一次从几个符号移走属性.
ClearAttributes 具有属性 HoldFirst.
ClearAttributes 并不对属性 Locked发生影响.
• 参见Mathematica全书: 2.3.7 and 节 2.5.3.
• 同时参见: SetAttributes, Unprotect.
Further Examples

This defines a function for integer arguments.

In[1]:=  

It doesn't do anything on lists.

In[2]:=  

Out[2]=

This makes it listable.

In[3]:=  

Now it works on lists.

In[4]:=  

Out[4]=

This makes fun1 no longer listable; the definition still works.

In[5]:=  

In[6]:=  

Out[6]=

In[7]:=