Commit 12d22d1e by BellCodeEditor

save project

parent b45c6bdd
Showing with 5 additions and 0 deletions
...@@ -6,3 +6,7 @@ with open(r'c:\Users\Administrator\Desktop\实验室\ss.txt','r', encoding='utf- ...@@ -6,3 +6,7 @@ with open(r'c:\Users\Administrator\Desktop\实验室\ss.txt','r', encoding='utf-
print(data[1:]) print(data[1:])
for b in data[1:]: for b in data[1:]:
print(b) print(b)
sum=sum+int(b)
print(sum)
result=data[0]+str(sum)
print(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