Commit 718178ea by BellCodeEditor

auto save

parent 79353ebc
Pipeline #10732 failed in 0 seconds
Showing with 43 additions and 12 deletions
students = ["悟空", "小贝", "八戒", "波奇"] import turtle
turtle.setup(600,800)
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除 t=turtle.Pen()
? t.
s=turtle.Screen()
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面 s.bgcolor("light pink")
? def cfx(x,y,a,b,c):
t.up()
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组, t.goto(x,y)
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组 t.down()
red = ? t.color(a)
blue = ? t.seth(0)
t.begin_fill()
for i in range(2):
t.fd(b)
t.right(90)
t.fd(c)
t.right(90)
t.end_fill()
cfx(-150,260,"gold",260,280)
cfx(-150,0,"white",260,30)
cfx(-150,-25,"brown",260,35)
cfx(-140,-38,"black",16,4)
cfx(-110,-38,"black",16,4)
cfx(-80,-38,"black",16,4)
cfx(-50,-38,"black",16,4)
cfx(-20,-38,"black",16,4)
cfx(10,-38,"black",16,4)
cfx(40,-38,"black",16,4)
cfx(70,-38,"black",16,4)
cfx(-100,-50,"brown",60,50)
cfx(0,-50,"brown",60,50)
cfx(20,-100,"gold",20,100)
cfx(-80,-100,"gold",20,100)
cfx(-82,-130,"white",25,80)
cfx(18,-130,"white",25,80)
cfx(-82,-145,"blue",25,3)
cfx(-82,-145,"red",25,3)
cfx(18,-130,"blue",25,3)
cfx(17,-130,"red",25,3)
t.ht()
turtle.done()
\ 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