first commit
This commit is contained in:
parent
abc6526143
commit
26631f9b48
24 changed files with 1089 additions and 1 deletions
19
Exercise/exercise-2.3.py
Normal file
19
Exercise/exercise-2.3.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
age_dict = {
|
||||
"Zhang San": 52,
|
||||
"Li Si": 19,
|
||||
"Wang Wu": 47
|
||||
}
|
||||
|
||||
# 检查后发现,张三的年龄和李四的年龄写反了,请将他们调整过来。并添加Zhao Liu,年龄为29
|
||||
|
||||
|
||||
|
||||
|
||||
# 应当为 19
|
||||
print(age_dict['Zhang San'])
|
||||
|
||||
# 应当为 52
|
||||
print(age_dict['Li Si'])
|
||||
|
||||
# 应当为 29
|
||||
print(age_dict['Zhao Liu'])
|
||||
Loading…
Add table
Add a link
Reference in a new issue