Skip to content

Commit e83f233

Browse files
authored
Merge pull request yidao620c#250 from hustcsxg/master
修改错别字
2 parents a5d62bd + f0b94f8 commit e83f233

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/c12/p06_storing_thread_specific_state.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
del self.local.sock
4343
4444
代码中,自己观察对于 ``self.local`` 属性的使用。
45-
它被初始化尾一个 ``threading.local()`` 实例。
45+
它被初始化为一个 ``threading.local()`` 实例。
4646
其他方法操作被存储为 ``self.local.sock`` 的套接字对象。
4747
有了这些就可以在多线程中安全的使用 ``LazyConnection`` 实例了。例如:
4848

source/c13/p06_executing_external_command_and_get_its_output.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
out_bytes = subprocess.check_output('grep python | wc > out', shell=True)
6363
6464
需要注意的是在shell中执行命令会存在一定的安全风险,特别是当参数来自于用户输入时。
65-
这时候可以使用 ``shlex.quote()`` 函数来讲参数正确的用双引用引起来
65+
这时候可以使用 ``shlex.quote()`` 函数来将参数正确的用双引用引起来
6666

6767
----------
6868
讨论

0 commit comments

Comments
 (0)