Commit e61b59c6 by BellCodeEditor

save project

parent 320dec6d
Showing with 144 additions and 0 deletions
import turtle as t
'''
t.speed(0)
t.pensize(30)
t.right(80)
t.forward(1000)
t.penup()
t.goto(0,0)
t.pendown()
t.pensize(5)
t.pencolor('yellow')
t.fillcolor('red')
t.begin_fill()
t.circle(65,300)
t.penup()
t.circle(65,30)
t.pendown()
t.left(100)
t.circle(65,300)
t.penup()
t.circle(65,30)
t.pendown()
t.left(100)
t.circle(65,300)
t.penup()
t.circle(65,30)
t.pendown()
t.left(100)
t.circle(65,300)
t.penup()
t.circle(65,30)
t.pendown()
t.left(100)
t.circle(65,300)
t.left(180)
t.end_fill()
t.penup()
t.goto(0,0)
t.pendown()
t.pencolor('red')
t.pensize(5)
t.circle(85,300)
t.penup()
t.circle(85,30)
t.pendown()
t.left(100)
t.circle(85,300)
t.penup()
t.circle(85,30)
t.pendown()
t.left(100)
t.circle(85,300)
t.penup()
t.circle(85,30)
t.pendown()
t.left(100)
t.circle(85,300)
t.penup()
t.circle(85,30)
t.pendown()
t.left(100)
t.circle(85,300)
t.left(180)
t.done()
'''
'''
t.fillcolor('red')
t.begin_fill()
t.circle(100,155)
t.right(60)
t.circle(100,155)
t.forward(190)
t.end_fill()
t.done()
'''
import turtle
turtle.fillcolor("red")
turtle.begin_fill()
count = 1
while count <= 5:
turtle.forward(100)
turtle.right(144)
count += 1
turtle.end_fill()
t.done()
class Hero:
def __init__(self):
self.level=1
self.hp=1
self.accack=1
yase = Hero()
print(yase.hp)
锦瑟无端五十弦,一弦一柱思华年。
庄生晓梦迷蝴蝶,望帝春心托杜鹃。
蓝田日暖玉生烟.沧海月明珠有泪,
此情可待成追忆?只是当时已惘然
\ No newline at end of file
with open('C:\\Users\\jiang\\Desktop\\ewe.txt','w',encoding='utf-8')as file:
file.write('锦瑟\n[唐] 李商隐\n锦瑟无端五十弦,\n一弦一柱思华年。\n庄生晓梦迷蝴蝶,\n望帝春心托杜鹃。\n沧海月明珠有泪,\n蓝田日暖玉生烟。\n此情可待成追忆?\n只是当时已惘然')
new_data=''
with open('C:\\Users\\jiang\\Desktop\\ewe.txt','w',encoding='utf-8')as file:
for data in file:
if'沧海月明珠有泪,'in data:
data=data.replace('沧海月明珠有泪,','_________')
if'蓝田日暖玉生烟。'in data:
data=data.replace('蓝田日暖玉生烟。','_________')
anew_dat+=data
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