Commit c738b0de by BellCodeEditor

auto save

parent 5e686e8a
import turtle
pen=turtle.Pen()
pen.pensize(5)
def wuhuan(x,y,color):
pen.pencolor(color)
pen.penup()
pen.goto(x,y)
pen.pd()
pen.circle(40)
wuhuan(-100,50,"blue")
wuhuan(-15,50,"black")
wuhuan(70,50,"red")
wuhuan(-60,-10,"yellow")
wuhuan(25,-10,"green")
pen.hideturtle()
turtle.done()
\ No newline at end of file
for i in range(1,10):
for a in range(1,i+1):
print(a,'*',i,'=',(a*i),end=(" "))
print()
\ No newline at end of file
s=[]
with open(r'c:\Users\23636\Desktop\scores.txt','r',encoding='utf-8') as file:
a=file.readlines()
for i in a:
d=i.split()
sum=0
for i in d[1:]:
sum=sum+int(i)
f=d[0]+str(sum)+"\n"
s.append(f)
with open(r'c:\Users\23636\Desktop\scoress.txt','w',encoding='utf-8') as filea:
filea.writelines(s)
import turtle
p=turtle.Pen()
p.
\ No newline at end of file
import turtle
p=turtle.Pen()
p.left(45)
p.forward(100)
p.left(90)
p.circle(50,180)
p.left(90)
p.circle(50,180)
p.left(90)
p.forward(100)
p.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
turtle.speed(0)
turtle.bgcolor("red")
turtle.fillcolor("green")
turtle.begin_fill()
turtle.left(45)
turtle.forward(100)
turtle.circle(50,180)
turtle.right(90)
turtle.circle(50,180)
turtle.goto(0,0)
turtle.end_fill()
turtle.hideturtle()
turtle.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