Skip to content

Commit

Permalink
Merge pull request #76 from Alicia1529/master
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
laixintao committed Feb 25, 2020
2 parents 1fb5c7f + 38c2a02 commit c92da7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chapter3/03_How_to_name_a_process.rst
Expand Up @@ -42,7 +42,7 @@
|work|
------

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

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

Expand Down
2 changes: 1 addition & 1 deletion chapter3/07_How_to_exchange_objects_between_processes.rst
Expand Up @@ -114,7 +114,7 @@
item = random.randint(0, 256)
self.queue.put(item)

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

def run(self):
while True:
Expand Down

0 comments on commit c92da7e

Please sign in to comment.