Skip to content

Commit db2713d

Browse files
authored
FIX: 修正了一个小错误。
1 parent 5f3faef commit db2713d

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
@@ -369,7 +369,7 @@ def __missing__(self, key):
369369
A = 1 if X else (2 if Y else 3)
370370
# 也可以使用and-or语句(一条语句实现多个if-else)
371371
a = 6
372-
result = (a > 20 and "big than 20" or a > 10 and "big than 10" or a > 5 and "big than 5") # 返回"big than 20"
372+
result = (a > 20 and "big than 20" or a > 10 and "big than 10" or a > 5 and "big than 5") # 返回"big than 5"
373373

374374
#-- Python的while语句或者for语句可以带else语句 当然也可以带continue/break/pass语句
375375
while a > 1:

0 commit comments

Comments
 (0)