Commit 37403969 by BellCodeEditor

save project

parent 78477255
Showing with 18 additions and 3 deletions
悟空 348
诺依 380
小贝 182
李丽 201
宋扬 107
王明 245
李强 164
孙小白 222
苏琪 137
刘若若 147
刘阳 226
王胜男 123
王娇 131
总和2613
\ No newline at end of file
......@@ -9,9 +9,9 @@ for i in a:
for sales in data[1:]:
sum += int(sales)
total += sum
print(data[0] + ' ' + str(sum))
result.append(data[0] + ' ' + str(sum)+'\n')
result.append('总和'+str(total))
with open(r'c:\Users\l\Documents\lesson13-1\1.txt' , 'w', encoding='utf-8') as file:
file.writlines()
\ No newline at end of file
file.writelines(result)
\ 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