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

bellcode / lesson13-1

  • 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
Switch branch/tag
  • lesson13-1
  • data.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · 06f06dcb
    BellCodeEditor committed 4 years ago
    06f06dcb
data.py 269 Bytes
1 2 3 4 5 6 7 8 9 10
with open(r'c:\Users\tang\Documents\lesson13-1\aaa.txt','r',encoding='utf-8') as file:
    a = file.readlines()
for i in a:
    data = i.split()
    print(data)
    # sum=0
    # for s in data[1:]:
    #     sun=sum+int(s)
    # res = data[0]+str(sum)
    # print(res)