Commit e46f1cb1 by BellCodeEditor

save project

parent 5ec53ebb
Showing with 14 additions and 0 deletions
q=open(r'c:\Users\玛酷\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
a=q.readlines()
print(a)
for i in a:
data=i.split()
#print(data[1:])
z=0
for q in data[1:]:
z+=int(q)
print(z)
a="1#2#3#4"
q=a.split("#")
print(q)
\ 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