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
Commit 8c9998b3 authored a year ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent f9a30428 c158443l949p219a9947/wx090271
Show whitespace changes
Inline Side-by-side
Showing with 7 additions and 9 deletions
  • di.py
  • diy.py
  • diy1.py
di.py
View file @ 8c9998b3
scores = {'语文':89, '数学':95, '英语':80}
k=89
v=95
s=80
t=k+v+s
This diff is collapsed. Click to expand it.
diy.py
View file @ 8c9998b3
scores = {'语文':89, '数学':95, '英语':80} scores = {'语文':89, '数学':95, '英语':80}
print((89+95+80)/3) s = input('总分')
\ No newline at end of file b = s+s
def b
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy1.py
View file @ 8c9998b3
...@@ -13,4 +13,4 @@ def get_average(dict_1): ...@@ -13,4 +13,4 @@ def get_average(dict_1):
ave_score = score/len(scores) ave_score = score/len(scores)
print('平均分是%d'%ave_score) print('平均分是%d'%ave_score)
print(get_average(scores)) get_average(scores)
\ No newline at end of file \ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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