Commit 5408df4b by BellCodeEditor

auto save

parent 79353ebc
Showing with 34 additions and 9 deletions
students = ["悟空", "小贝", "八戒", "波奇"] import turtle
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除 turtle.screensize(600,600,"lightblue")
? screen = turtle.Screen()
size = int(screen.textinput("输入","你想要多大的爱心?"))
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面 turtle.screensize(600,600,"lightblue")
? pen=turtle.Pen()
pen.penup()
pen.goto(-140,70)
pen.pendown()
pen.write("来自遥远的人类\n送来的祝福!\n",font = ("宋体",35,"normal"))
pen.hideturtle()
pen1 = turtle.Pen()
pen1.penup()
pen1.goto(0,-200)
pen1.pendown()
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.forward(2*size)
pen1.circle(size,180)
pen1.left(-90)
pen1.circle(size,180)
pen1.forward(2*size)
pen1.end_fill()
pen1.hideturtle()
turtle.done()
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组,
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组
red = ?
blue = ?
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