Skip to content

Commit 474e2ba

Browse files
authored
Merge pull request xianhu#4 from KrisYu/master
missing quote ‘ typo
2 parents 4d0983d + c913730 commit 474e2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
# 普通调用
192192
"{0}, {1} and {2}".format('spam', 'ham', 'eggs') # 基于位置的调用
193193
"{motto} and {pork}".format(motto = 'spam', pork = 'ham') # 基于Key的调用
194-
"{motto} and {0}".format(ham, motto = 'spam') # 混合调用
194+
"{motto} and {0}".format('ham', motto = 'spam') # 混合调用
195195
# 添加键 属性 偏移量 (import sys)
196196
"my {1[spam]} runs {0.platform}".format(sys, {'spam':'laptop'}) # 基于位置的键和属性
197197
"{config[spam]} {sys.platform}".format(sys = sys, config = {'spam':'laptop'}) # 基于Key的键和属性

0 commit comments

Comments
 (0)