Commit 274c3328 by BellCodeEditor

auto save

parent 05e7d622
Showing with 36 additions and 0 deletions
with open(r"C:\Users\19760\Desktop\1.txt",'r',\
encoding='utf-8') as f:
for data in f:
if "王五:19本" in data:
data=data.replace("王五:19本","王五:15本")
with open(r"C:\Users\19760\Desktop\1.txt",'w',\
encoding='utf-8') as f:
\ No newline at end of file
a='abcd'
print(id(a),a)
a=a.replace("b","a")
print(id(a),a)
\ No newline at end of file
import turtle as t
def draw(n):
if n>36:
t.forward(n)
t.left(30)
draw(n-6)
t.right(60)
draw(n-6)
t.left(30)
t.forward(-n)
t.left(90)
draw(60)
t.done()
\ 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