2020-08-13 12:00:20 +02:00
|
|
|
|
---
|
|
|
|
|
id: 5e7b9f050b6c005b0e76f058
|
2021-06-23 21:35:24 +05:30
|
|
|
|
title: 根据条件执行
|
2020-08-13 12:00:20 +02:00
|
|
|
|
challengeType: 11
|
|
|
|
|
videoId: gz_IfIsZQtc
|
2021-10-03 12:24:27 -07:00
|
|
|
|
bilibiliIds:
|
|
|
|
|
aid: 206949935
|
|
|
|
|
bvid: BV1Jh411z7bY
|
|
|
|
|
cid: 376337035
|
2021-01-13 03:31:00 +01:00
|
|
|
|
dashedName: conditional-execution
|
2020-08-13 12:00:20 +02:00
|
|
|
|
---
|
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
|
# --question--
|
2020-08-13 12:00:20 +02:00
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
|
## --text--
|
2020-08-13 12:00:20 +02:00
|
|
|
|
|
2021-06-23 21:35:24 +05:30
|
|
|
|
以下哪个代码缩进,能够满足当“x=0”和“y=10”的时,打印 "Yes"?
|
2020-08-13 12:00:20 +02:00
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
|
## --answers--
|
2020-08-13 12:00:20 +02:00
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
|
```python
|
|
|
|
|
if 0 == x:
|
|
|
|
|
if y == 10:
|
|
|
|
|
print("Yes")
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
if 0 == x:
|
|
|
|
|
if y == 10:
|
|
|
|
|
print("Yes")
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
if 0 == x:
|
|
|
|
|
if y == 10:
|
|
|
|
|
print("Yes")
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
if 0 == x:
|
|
|
|
|
if y == 10:
|
2020-08-13 12:00:20 +02:00
|
|
|
|
print("Yes")
|
|
|
|
|
```
|
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|