Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
AzureDeer
›
全部回复第 1 页 / 共 1 页
回复总数
1
2021 年 1 月 7 日
回复了
AzureDeer
创建的主题
›
Python
›
请问大家,我这一段为啥报错呀
scores = {'语文':89, '数学':95, '英语':80}
sum_score = 0
def get_average(scores):
for subject, score in scores.items():
sum_score += score
print('现在的总分是%d'%sum_score)
ave_score = sum_score/len(scores)
print('平均分是%d'%ave_score)
get_average(scores)
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
886 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms ·
UTC 19:00
·
PVG 03:00
·
LAX 12:00
·
JFK 15:00
♥ Do have faith in what you're doing.
❯