Skip to content

Commit

Permalink
fix python hw Q4-2-2 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouTimeMachine committed Jun 12, 2024
1 parent e66803a commit 7069934
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/courses/python/hw.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,15 +554,15 @@ print("yes" if s1==s2 else "no")

### 选择题

**Q4-2-2.** 以下哪句打印出 `I\love\Python`
**Q4-2-2.** 以下哪句打印出 `I\love\Python\test`

A. `print("I\love\Python.txt")`
A. `print("I\love\Python\test")`

B. `print("I\\love\\Python.txt")`
B. `print("I\\love\\Python\\test")`

C. `print("I\"love\"Python.txt")`
C. `print("I\"love\"Python\"txt")`

D. `print("I"\love"\Python.txt")`
D. `print("I"\love"\Python"\txt")`

??? general "Answer"
B。`\` 是转义字符,如果要输出 `\` 本身,需要使用 `\\`,所以 A 错 B 对。
Expand Down

0 comments on commit 7069934

Please sign in to comment.