Skip to content

Commit c92da7e

Browse files
authored
Merge pull request #76 from Alicia1529/master
fix typo
2 parents 1fb5c7f + 38c2a02 commit c92da7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chapter3/03_How_to_name_a_process.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
|work|
4343
------
4444

45-
这个过程明明线程很像。明明进程需要为进程对象提供 ``name`` 参数: ::
45+
这个过程和命名线程很像。命名进程需要为进程对象提供 ``name`` 参数: ::
4646

4747
process_with_name = multiprocessing.Process(name='foo_process', target=foo)
4848

chapter3/07_How_to_exchange_objects_between_processes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
item = random.randint(0, 256)
115115
self.queue.put(item)
116116

117-
消费者进程负责使用 ``get()`` 方法从队列中移除item,并且确认队列是否为空,如果为空,就执行 ``break`` 跳出 ``whild`` 循环: ::
117+
消费者进程负责使用 ``get()`` 方法从队列中移除item,并且确认队列是否为空,如果为空,就执行 ``break`` 跳出 ``while`` 循环: ::
118118

119119
def run(self):
120120
while True:

0 commit comments

Comments
 (0)