first commit
This commit is contained in:
parent
abc6526143
commit
26631f9b48
24 changed files with 1089 additions and 1 deletions
18
Exercise/exercise-2.2.py
Normal file
18
Exercise/exercise-2.2.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
# 我们用如下数组存储一些患者的信息
|
||||
patient_info = [
|
||||
["Zhang San", 52, "M"],
|
||||
["Li Si", 19, "F"],
|
||||
["Wang Wu", 47, "F"],
|
||||
]
|
||||
|
||||
# 检查后发现,张三的年龄和李四的年龄写反了,请将他们调整过来
|
||||
|
||||
|
||||
|
||||
|
||||
# 应当为 19
|
||||
print(patient_info[0][1])
|
||||
|
||||
# 应当为 52
|
||||
print(patient_info[1][1])
|
||||
Loading…
Add table
Add a link
Reference in a new issue