We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3faef commit db2713dCopy full SHA for db2713d
python_base.py
@@ -369,7 +369,7 @@ def __missing__(self, key):
369
A = 1 if X else (2 if Y else 3)
370
# 也可以使用and-or语句(一条语句实现多个if-else)
371
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"
+ result = (a > 20 and "big than 20" or a > 10 and "big than 10" or a > 5 and "big than 5") # 返回"big than 5"
373
374
#-- Python的while语句或者for语句可以带else语句 当然也可以带continue/break/pass语句
375
while a > 1:
0 commit comments