Commit 704ffae9 by BellCodeEditor

auto save

parent 05e7d622
def new_input():
dect = ()
while True:
x = input("请输入选手编号")
if x in dect:
print("请输入选手得分")
contiune
if x =="q":
print("用户退出程序")
break
if t ="ok":
print("输入完成")
print("输入结果为,dect")
break
e=input("请输入得分")
dect[t]=e
print(dect)
new_input
def sum_input():
w = 0
for v in dect.values:
u == v
w += u
print w
import hhuu
l = hhuu.new_input()
s = hhuu.sum_input()
\ No newline at end of file
dect = {}
def new_input():
global dect
while True:
x = input("请输入选手编号")
if x in dect:
print("请输入选手得分")
contiune
if x =="q":
print("用户退出程序")
break
if x == "ok":
print("输入完成")
print("输入结果为,",dect)
break
e=int(input("请输入得分"))
dect[x]=e
print(dect)
#new_input()
def sum_input():
global dect
w = 0
for v in dect.values():
u = v
w += u
print(w)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment