dhha.py
609 Bytes
dect={}
def new_input():
global dect
while True:
t=input("请输录编号")
if t in dect:
print("再次输录编号")
continue
if t =="q":
print("退出程序")
break
if t =="ok":
print("输录完成")
print("输路结果为",dect)
break
e=int(input("请输录得分"))
dect[t]=e
print(dect)
def sum_input():
global dect
w=0
for v in dect.values():
l=v
w+=l
print(w)