diff --git a/quiz.py b/quiz.py index 609b068..95dd736 100644 --- a/quiz.py +++ b/quiz.py @@ -4,5 +4,5 @@ monster = {'盘丝洞':'蜘蛛精','白骨洞': '白骨精','大雁塔':'花妖 # 打印出大雁塔 print(area[3]) # 向字典中添加 '地府':'僵尸' -monster.append('地府','僵尸') +monster['地府']='僵尸' print(monster) \ No newline at end of file