Files
freeCodeCamp/curriculum/challenges/chinese/07-scientific-computing-with-python/python-for-everybody/more-conditional-structures.md

61 lines
652 B
Markdown
Raw Permalink Normal View History

---
id: 5e7b9f060b6c005b0e76f059
title: 更多条件结构
challengeType: 11
videoId: HdL82tAZR20
bilibiliIds:
aid: 631930118
bvid: BV1Nb4y1r7z2
cid: 376337449
dashedName: more-conditional-structures
---
# --description--
更多资源:
\- [练习 1](https://www.youtube.com/watch?v=crLerB4ZxMI)
\- [练习 2](https://www.youtube.com/watch?v=KJN3-7HH6yk)
# --question--
## --text--
给出以下代码:
```python
temp = "5 degrees"
cel = 0
fahr = float(temp)
cel = (fahr - 32.0) * 5.0 / 9.0
print(cel)
```
哪一行/几行应该被 `try` 块包围?
## --answers--
1
---
3
---
3、4
---
4
---
## --video-solution--
3