Skip to content

Commit f2d0193

Browse files
committed
Update p15_interpolating_variables_in_strings.rst
fix wrong cases in code
1 parent 10ca7c0 commit f2d0193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c02/p15_interpolating_variables_in_strings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Python并没有对在字符串中简单替换变量值提供直接的支持。
6161

6262
.. code-block:: python
6363
64-
class SafeSub(dict):
64+
class safesub(dict):
6565
"""防止key找不到"""
6666
def __missing__(self, key):
6767
return '{' + key + '}'

0 commit comments

Comments
 (0)