Commit e115fe79 by BellCodeEditor

save project

parent 5f100972
new_data=''
with open(r'C:\Users\Administrator\Desktop\text.txt','r',encoding='utf-8') as a:
for data in a:
if '小强:10本' in data:
data=data.replace('小强:10本','小强:11本')
new_data +=data
with open(r'C:\Users\Administrator\Desktop\text.txt','w',encoding='utf-8') as a:
a.write(new_data)
with open(r'C:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8') as file:
file=open(r'C:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')
\ No newline at end of file
file=open(r'C:\Users\Adminis','r',encoding='utf-8')
file.close()
file=open(r'C:\Users\Administrator\Desktop\','r',encoding='utf-8')
file.close()
\ No newline at end of file
with open(r'C:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8') as file:
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
""" """
import turtle import turtle
open=turtle.pen() open=turtle.pen()
For i in range(5) for i in range(5):
pen.forward(200) pen.forward(200)
pen.right(144) pen.right(144)
pen.hideturtle() pen.hideturtle()
......
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