Commit 4d71b27d by BellCodeEditor

auto save

parent c0084ce3
import turtle
p = turtle.Pen()
p.pensize(20)
p.penup()
p.goto(-50,100)
p.down()
p.color("red")
p.fd(200)
p.rt(135)
p.color("green")
p.fd(280)
p.lt(135)
p.color("blue")
p.fd(200)
turtle.done()
import turtle as t
t.penup()
t.goto(0,0)
t.pendown()
for i in range(4):
t.fd(200)
t.left(90)
t.pencolor("red")
t.fillcolor("red")
t.penup()
t.goto(60,85)
t.begin_fill()
t.circle(10)
t.end_fill()
t.penup()
t.goto(100,85)
t.begin_fill()
t.circle(10)
t.end_fill()
t.penup()
t.goto(140,85)
t.begin_fill()
t.circle(10)
t.end_fill()
t.penup()
t.hideturtle()
t.done()
a = 6 #长方形的长
b = 3 #长方形的宽
s = a*b #长方形的面积
print("长方形的面积是"+str(s))
import turtle as t
t.penup()
t.goto(0,0)
t.pendown()
for i in range(4):
t.fd(400)
t.left(90)
t.pencolor("red")
t.penup()
t.goto(0,200)
t.pendown()
t.fd(400)
t.penup()
t.pencolor("red")
t.penup()
t.goto(200,0)
t.lt(90)
t.pendown()
t.fd(400)
t.hideturtle()
t.done()
\ No newline at end of file
n = input("请输入你的鞋码:")
w = (int(n)+10)/2
print("你的脚长是"+str(w)·)
\ 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