Commit 1cdfed9a by BellCodeEditor

auto save

parent 98f24605
Showing with 66 additions and 13 deletions
import turtle
pen=turtle.Pen()
pen.speed(1)
pen.pensize(3)
pen.pencolor("yellow")
pen.fillcolor("red")
pen.begin_fill()
for i in range(36):
pen.forward(200)
pen.right(170)
pen.end_fill()
pen.hideturtle()
turtle.done()
# 这是悟空为花果山小猴做臂力测试的程序代码 import turtle
name=input('你叫啥名啊?') pen=turtle.Pen()
power=int(input('你臂力多少啊?')) pen.speed(1)
list_hero=['猴三',10,'猴一',21,'猴五',22,'猴队长',29,'猴七',30] pen.fillcolor("white")
for i in range(len(list_hero)): pen.begin_fill()
if i%2==1 and list_hero[i]>=power: pen.circle(100,180)
list_hero.insert(i-1,name) pen.end_fill()
list_hero.insert(i,power) pen.fillcolor("black")
break pen.begin_fill()
print(list_hero) pen.circle(100,180)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 pen.end_fill()
dict_hero= pen.fillcolor("black")
print(dict_hero) pen.begin_fill()
pen.circle(50,180)
pen.end_fill()
pen.fillcolor("white")
pen.begin_fill()
pen.circle(-50,180)
pen.end_fill()
pen.penup()
pen.goto(0,50)
pen.fillcolor("white")
pen.begin_fill()
pen.pendown()
pen.circle(10)
pen.end_fill()
pen.penup()
pen.goto(0,150)
pen.fillcolor("black")
pen.begin_fill()
pen.pendown()
pen.circle(10)
pen.end_fill()
pen.hideturtle()
turtle.done()
=#国旗坐标(-200,200)
#第一个五角星大小 50 (-170,145)
#第二个五角星大小 20 (-100,180)
#第三个五角星大小 20 (-70,160)
#第四个五角星大小 20 (-70,120)
#第五个五角星大小 20 (-100,100)
cirle(50,180)
\ 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