Commit e8a91152 by BellCodeEditor

auto save

parent 75f363ba
Showing with 13 additions and 7 deletions
......@@ -7,5 +7,7 @@ for i in a:
# print(data[0])
# print(data[1:])
sum=0
for i in data[1:]:
\ No newline at end of file
for w in data[1:]:
sum=sum+int(w)
o=data[0]+str(sum)
print(o)
\ No newline at end of file
......@@ -2,6 +2,10 @@
# new_txt=txt.split()
# print(new_txt)
num='1.2.3.4.5.6'
new_num=num.split('.')
print(new_num)
\ No newline at end of file
# num='1.2.3.4.5.6'
# new_num=num.split('.')
# print(new_num)
a=['王思一\n','SB']
with open(r'C:\Users\123\Desktop\sales_list.txt','r',encoding='utf-8') as file:
file writelines(a)
\ 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