Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson11_5

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson11_5
  • dhha.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · 97c9e0c6
    BellCodeEditor committed 4 years ago
    97c9e0c6
dhha.py 609 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
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)