提交 fb9edf78 authored 作者: Joseph Turian's avatar Joseph Turian

Small language fixes in Module

上级 ade94f1c
...@@ -105,7 +105,7 @@ initial value is None. ...@@ -105,7 +105,7 @@ initial value is None.
>>> acc.state, acc.inc >>> acc.state, acc.inc
array(0.0), None array(0.0), None
Since state was declared as a Member, we can access it easily using Since state was declared as a Member, we can access it using
'.state'. '.state'.
.. note:: .. note::
...@@ -129,7 +129,7 @@ that it works as intended, adding the argument to the internal state. ...@@ -129,7 +129,7 @@ that it works as intended, adding the argument to the internal state.
>>> acc.state = 39.99 >>> acc.state = 39.99
The state is also easy to set. When we manually set the value of a member The state can also be set. When we manually set the value of a member
attribute like this, then subsequent calls to the methods of our module will attribute like this, then subsequent calls to the methods of our module will
use the new value. use the new value.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论