Commit 4f09d69a by BellCodeEditor

save project

parent a4650c60
Showing with 6 additions and 1 deletions
......@@ -3,4 +3,8 @@ with open(r'c:\Users\xuank\Desktop\py.txt','r',encoding = 'utf-8') as word:
#print(a)
for i in a:
e = i.split()
print(e[1:])
#print(e[1:])
num = 0
for q in e[1:]:
num += int(q)
print(num)
\ 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