Commit 2afa96d1 by BellCodeEditor

save project

parent 56bfefd7
Showing with 33 additions and 22 deletions
A=int(input("请输入学生人数:")) A=int(input("请输入学生人数:"))
A=int(input("请输入学生人数:")) A=int(input("请输入学生人数:"))
B=0
for i in range(A):
B=B+int(input("学生成绩:"))
print("班级总成绩",B)
print("平均成绩",B/A)
A=int(input("请输入学生人数:"))
B=[] B=[]
for i in range(A): for i in range(A):
C=int(input("学生人数"+str(i+1)+"成绩")) B=int(input("学生成绩:"))
B.append(C) B.append(C)
print(B) print(B)
D=0 top1=0
for i in B: for i in B:
D=D+i if top1<i:
print(D) top1=i
E=D/A print(top1)
print(E)
\ No newline at end of file
-- "a/\345\217\221\350\277\207\347\232\204.py" A=int(input("请输入学生人数:"))
A=int(input("请输入学生人数:"))
B=[]
for i in range(A):
C=int(input("学生人数"+str(i+1)+"成绩"))
B.append(C)
print(B)
D=0
for i in B:
D=D+i
print(D)
E=D/A
print(E)
\ No newline at end of file
weather={'天津':89,'广州':87,'山西':90,'陕西':98,'山东':67,'四川':100} score={'语文':89,'数学':87,'英语':90,'政治':98,'历史':67,}
weather={'天津':89,'广州':87,'山西':90,'陕西':98,'山东':67,'四川':100} score={'语文':89,'数学':87,'英语':90,'政治':98,'历史':67,}
date=weather.pop('天津') for d,v in score.items():
print(date) print(d,v)
print(weather)
\ No newline at end of file score={'语文':89,'数学':87,'英语':90,'政治':98,'历史':67,}
for k in score.keys():
print(k)
score={'语文':89,'数学':87,'英语':90,'政治':98,'历史':67,}
for k in score.values():
print(k)
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