diff --git a/diy2.py b/diy2.py index 60141ad..4aa74ab 100644 --- a/diy2.py +++ b/diy2.py @@ -1,5 +1,10 @@ -score = {'语文':91,'数学':88,'英语':85} - -# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 - - +def wer(): + total=[] + while True: + a=input("请输入:") + if a=='q': + break + else: + total.append(a) + print(total) +wer() \ No newline at end of file