原文链接:https://www.wolfram.com/language/fast-introduction-for-programmers/en/assignments/
正文
Values can be assigned using =,this is “immediate” assignment. 可以使用=进行赋值,这是立即的赋值
An alternative is delayed assignment, where the value is recomputed every time it is needed: 另一种是延迟赋值,每当变量需要时数值都会被重新计算
![Mathematica入门[7]–Assignments(赋值)](https://img.mathpretty.com/snipaste_20170925_191833.png)
Clear the assignments: 清除赋值
![Mathematica入门[7]–Assignments(赋值)](https://img.mathpretty.com/snipaste_20170925_191851.png)
在python中使用
del来清除变量
# 对a赋值
a = [1,2,3]
print(a)
# 清除变量
del(a)
print(a)
![Mathematica入门[7]–Assignments(赋值)](https://img.mathpretty.com/snipaste_20170925_192344.png)
一些单词及句子
hint:提示
assignments:赋值
- 微信公众号
- 关注微信公众号
-
- QQ群
- 我们的QQ群号
-


![Mathematica入门[13]–Associations(关联)](https://img.mathpretty.com/20210911_162038_sjhj0m3.jpg)
![Mathematica入门[12]–Options(选项)](https://img.mathpretty.com/20210911_162053_3lh8t7l.jpg)
![Mathematica入门[11]–Applying Functions(函数应用)](https://img.mathpretty.com/20210911_162102_myzgomp.jpg)
![Mathematica入门[10]–Pure Functions(纯函数)](https://img.mathpretty.com/20210911_162124_pk73t7w.jpg)
![Mathematica入门[9]–Function Definitions(函数定义)](https://img.mathpretty.com/20210911_162004_canayhp.jpg)
![Mathematica入门[8]–Patterns(模式)](https://img.mathpretty.com/20210911_162015_z7nxw4h.jpg)
![Mathematica入门[6]--Iterators(迭代器)](https://img.mathpretty.com/20210911_161424_vlvm1hh.jpg)
![Mathematica入门[4]--Symbolic Expressions(符号表达式)](https://img.mathpretty.com/20210911_162031_ifrgvfm.jpg)

评论