Commit 1744acdc by BellCodeEditor

auto save

parent 51612077
Showing with 8 additions and 8 deletions
......@@ -3,12 +3,12 @@
s = {'语文':89, '数学':95, '英语':80}
def get(c):
s = 0
for s, c in c.items():
c += c
print('现在的总分是%d'%c)
ave_c = c/len(c)
def get(s):
s3 = 0
for s2, s1 in s.items():
s3 += s1
print('现在的总分是%d'%s3)
ave_c = s3/len(s)
print('平均分是%d'%ave_c)
get(c)
\ No newline at end of file
get(s)
\ No newline at end of file
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