Commit 7f9124a0 by BellCodeEditor

auto save

parent c66a449e
Showing with 17 additions and 22 deletions
# 利用write()帮助悟空给诺依回信吧~ num=input()
import turtle num2=num.split(' ')
screen=turtle.Screen() lst=[]
screen.bgcolor("light blue") lst2=[]
len=screen.textinput("100","100") for i in num2:
len=int(len) lst.append(int(i))
pen=turtle.Pen() for i in range(lst[0],lst[1]+1):
pen.write("你好\nSB.",font=("Times",30,"normal")) sum=0
pen.hideturtle() lst3=list(str(i))
len=60 for j in lst3:
pen.penup() sum=sum+int(j)
pen.goto(100,100)
pen.pendown() if i%sum==0:
pen.pensize(5) lst2.append(i)
pen.pencolor("red") print(lst2)
pen.left(45)
pen.forward(2*len) \ No newline at end of file
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
turtle.done()
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