Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson13-5

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 5f940caf authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 4eef4a58 c205041l976p219a10079/wx036063
Hide whitespace changes
Inline Side-by-side
Showing with 15 additions and 14 deletions
  • diy.py
  • new_sales_list.txt
diy.py
View file @ 5f940caf
......@@ -6,7 +6,7 @@ for i in a:
sum=0
for sales in data[1:]:
sum+=int(sales)
result=data[0]+str(sum)+"\n"
result=data[0]+" "+str(sum)+"\n"
final_sum.append(result)
with open(r"c:\Users\admin\Documents\lesson13-5\new_sales_list.txt","w",encoding="utf-8")as file2:
file2.writelines(final_sum)
\ No newline at end of file
This diff is collapsed. Click to expand it.
new_sales_list.txt
View file @ 5f940caf
悟空348
诺依380
小贝182
李丽201
宋扬107
王明245
李强164
孙小白222
苏琪137
刘若若147
刘阳226
王胜男123
王娇131
悟空 348
诺依 380
小贝 182
李丽 201
宋扬 107
王明 245
李强 164
孙小白 222
苏琪 137
刘若若 147
刘阳 226
王胜男 123
王娇 131
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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