Commit 50c3f811 by BellCodeEditor

save project

parent 53ad8301
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
pen.pencolor("yellow")
x=10
y=0
for i in range(10):
pen.pendown()
pen.circle(x,360)
pen.penup()
x+=10
y-=10
pen.sety(y)
turtle.done()
from turtle import*
circle(40,360)
goto(0,-80)
circle(40,360)
goto(80,0)
circle(40,360)
goto(80,-80)
circle(40,360)
done
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.pencolor("pink")
screen=turtle.Screen()
len=screen.textinput("数字框","圆的大小")
b=int(len)
pen.circle(b)
pen.goto(0,0)
pen.left(180)
pen.circle(b)
pen.goto(2*b,0)
pen.right(180)
pen.circle(b)
pen.left(180)
pen.circle(b)
pen.right(180)
turtle.done()
\ No newline at end of file
......@@ -7,7 +7,7 @@ pen.hideturtle()
screen=turtle.Screen()
screen.bgcolor("pink")
pen1=turtle.Pen()
len=screen.textinput("你想要多大的爱心呀?")
len=screen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len)
pen1.pensize(5)
pen1.pencolor("red")
......
username="python"
userpassword="123456"
a=input("用户名")
b=input("密码")
if a==username and b==userpassword:
print("正确")
else:
print("错误")
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(0,-10)
pen.fillcolor("red")
pen.begin_fill()
pen.pendown()
pen.circle(10)
pen.penup()
pen.goto(-50,-10)
pen.pendown()
pen.circle(10)
pen.penup()
pen.goto(50,-10)
pen.pendown()
pen.circle(10)
pen.end_fill()
pen.penup()
pen.goto(0,-110)
pen.pendown()
pen.forward(100)
for i in range(4):
pen.left(90)
pen.forward(200)
pen.hideturtle()
turtle.done()
import turtle
pen=turtle.Pen()
pen.pencolor("black")
pen.penup()
pen.goto(0,150)
pen.pendown()
pen.fillcolor("red")
pen.begin_fill()
pen.right(45)
pen.forward(200)
pen.right(90)
pen.forward(200)
pen.right(90)
pen.forward(200)
pen.right(90)
pen.forward(200)
pen.end_fill()
pen.right(45)
pen.forward(141)
for i in range(4):
pen.right(90)
pen.forward(282)
pen.hideturtle()
turtle.done()
\ No newline at end of file
n,m,x=input('请输入内容').split()
n = int(n)
m = int(m)
x = int(x)
a=0
for i in range(n,m+1)
a = a+ str(i).count(str(x))
print(a)
\ No newline at end of file
turtle import
import Screen()
b=123456
o=screen.textinput()
p=screen.textinput
int(o)
if o==name and p==b
\ 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