Commit c869084a by BellCodeEditor

save project

parent c5dd7c79
Showing with 24 additions and 8 deletions
# 温酒斩华雄上 # 温酒斩华雄上
# 注意从现在开始,字符串用单引号咯 # 注意从现在开始,字符串用单引号咯
# 和你的小伙伴用列表讲讲温酒斩华雄的故事,上半集,并完成下面的挑战: # 和你的小伙伴用列表讲讲温酒斩华雄的故事,上半集,并完成下面
# 利用write()帮助悟空给诺依回信吧~
#这时还是无名小卒的关羽上前请战,请从b列表中删掉“关羽”,用三种方法哦。 import turtle
a=['吕布'] screen=turtle.Screen()
b=['1','2','关羽','刘备','张飞','3'] screen.bgcolor("light blue")
a.extend(b[2:5]) len=screen.textinput("100","100")
print(a) len=int(len)
\ No newline at end of file pen=turtle.Pen()
pen.write("你好小王(doge\n.",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
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