From 15ca9e0f2b8ec1b6fd5cbaf853403f3266599017 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 24 Apr 2021 15:40:17 +0800 Subject: [PATCH] save project --- nmd.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nmd.py diff --git a/nmd.py b/nmd.py new file mode 100644 index 0000000..abd9d91 --- /dev/null +++ b/nmd.py @@ -0,0 +1,17 @@ +dict = {'a':99,'b':99,'c':97,'d':95,'e':94,'f':90,'g':150} +while True: + i = input('修改还是查找?') + if i == '修改': + n = input('学生姓名:') + v = input('学生成绩:') + if n in dict: + if int(v)>=dict[n]: + dict[n] = int(v) + print('6啊') + else: + print('弟弟') + else: + dict[n] = int(v) + print(dict) + if i == '查找': + print(dict) \ No newline at end of file -- libgit2 0.25.0