Commit cdd161a2 by BellCodeEditor

save project

parent ac06d90d
Showing with 6 additions and 7 deletions
with open(r'C:\Users\添博睿\Desktop\student' )
with open(r'C:\Users\添博睿\Desktop\student' )
......@@ -2,12 +2,11 @@ with open(r'C:\Users\添博睿\Desktop\student' )
a=file.readlines()
print()
for i in a:
data=i.split()
sum=0
for sales in data(1:)
sum=sum+int(sales)
reault=data[0]+str(sum)
print(reault)
......
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