Skip to content

Commit 009c0d1

Browse files
committed
Merge pull request yidao620c#87 from finfou/master
Fix error in json deserialize demo
2 parents cc9f3f1 + fa0445d commit 009c0d1

3 files changed

+3
-3
lines changed

source/c06/p02_read-write_json_data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ JSON编码的格式对于Python语法而已几乎是完全一样的,除了一
209209
obj = cls.__new__(cls) # Make instance without calling __init__
210210
for key, value in d.items():
211211
setattr(obj, key, value)
212-
return obj
212+
return obj
213213
else:
214214
return d
215215

source/c07/p07_capturing_variables_in_anonymous_functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
----------
6161
讨论
6262
----------
63-
在这里列出来的问题是新手很容易犯的错误,有些新手可能会不恰当的lambda表达式
63+
在这里列出来的问题是新手很容易犯的错误,有些新手可能会不恰当的使用lambda表达式
6464
比如,通过在一个循环或列表推导中创建一个lambda表达式列表,并期望函数能在定义时就记住每次的迭代值。例如:
6565

6666
.. code-block:: python

source/c08/p07_calling_method_on_parent_class.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
>>>
151151
152152
为了弄清它的原理,我们需要花点时间解释下Python是如何实现继承的。
153-
对于你定义的每一个类而已,Python会计算出一个所谓的方法解析顺序(MRO)列表。
153+
对于你定义的每一个类,Python会计算出一个所谓的方法解析顺序(MRO)列表。
154154
这个MRO列表就是一个简单的所有基类的线性顺序表。例如:
155155

156156
.. code-block:: python

0 commit comments

Comments
 (0)