Commit d7c42774 by BellCodeEditor

save project

parent f9b6bca9
M=int(input("11"))
N=int(input("22"))
for i in range(M,N+1):
if i%7==0 and i%5!=0:
print(i,end=",")
import turtle
turtle.screensize(0,0,"bule")
turtle.pencolor("red")
turtle.shape("turtle")
turtle.fillcolor("red")
for i in range(5):
turtle.forward(10)
turtle.right(144)
turtle.end_fill()
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
import turtle import turtle
pen= turtle.Pen() pen= turtle.Pen()
size=textinput("提示","你想要多大的魔法阵呀?") screen=turtle.Screen()
size=int(screen.textinput("提示","你想要多大的魔法阵呀?"))
pen.circle(size) pen.circle(size)
pen.circle(size,360,3) pen.circle(size,360,3)
pen.circle(size,60) pen.circle(size,60)
......
print("Hllo World")
\ No newline at end of file
print("Hello World!")
\ No newline at end of file
print("Hllo World!")
\ No newline at end of file
import turtle
t=turtle.Turtle()
turtle.screensize(800,600)
t.speed(7)
t.pensize(1)
t.color("black")
t.fillcolor("yellow")
t.begin_fill()
import random
for h in range(5):
a=random.randint(-300,200)
c=random.randint(100,300)
b=random.randint(10,150)
for i in range(5):
t.penup()
t.goto(a,c)
t.pendown()
t.forward(b)
t.left(144)
t.end_fill()
\ 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