Commit b47d14da by BellCodeEditor

auto save

parent 024fb164
Showing with 73 additions and 9 deletions
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
\ No newline at end of file
import turtle
# 设置画笔
t = turtle.Turtle()
t.pensize(5)
t.speed(1)
# 画天线宝宝的身体
t.penup()
t.goto(-50, -100)
t.pendown()
t.circle(100)
# 画天线宝宝的脸
t.penup()
t.goto(-30, 50)
t.pendown()
t.circle(30)
# 画天线宝宝的眼睛
t.penup()
t.goto(-45, 70)
t.pendown()
t.circle(5)
t.penup()
t.goto(-15, 70)
t.pendown()
t.circle(5)
# 画天线宝宝的嘴巴
t.penup()
t.goto(-40, 40)
t.pendown()
t.right(90)
t.circle(40, 180)
# 画天线宝宝的天线
t.penup()
t.goto(-40, 120)
t.pendown()
t.left(60)
t.forward(50)
t.right(120)
t.forward(50)
# 画天线宝宝的手
t.penup()
t.goto(-120, -50)
t.pendown()
t.setheading(-60)
t.circle(100, 120)
t.penup()
t.goto(20, -50)
t.pendown()
t.setheading(60)
t.circle(-100, 120)
# 画天线宝宝的脚
t.penup()
t.goto(-80, -180)
t.pendown()
t.setheading(-30)
t.circle(80, 60)
t.penup()
t.goto(40, -180)
t.pendown()
t.setheading(30)
t.circle(-80, 60)
# 完成绘制
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