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

bellcode / lesson10-3

  • 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
  • lesson10-3
  • 2.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 64e90f0a
    BellCodeEditor committed 3 years ago
    64e90f0a
2.py 282 Bytes
1 2 3 4 5 6 7 8 9 10 11 12
scores = {'语文':95,'数学':95,'英语':95}
def get_b(scores):
    score=0

    for subject,a in scores.items():
        score+=a
    print('现在的总分是%d'%score)
    b_score = score/len(scores)
    print('现在的平均分是%d'%b_score)
get_b(scores)