Commit 39b0a43a by BellCodeEditor

save project

parent 502609b5
dict_
\ No newline at end of file
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
pen=turtle.Pen()
pen.speed(1)
pen.fillcolor("white")
pen.begin_fill()
pen.circle(100,180)
pen.end_fill()
pen.fillcolor("black")
pen.begin_fill()
pen.circle(100,180)
pen.end_fill()
pen.fillcolor("black")
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
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98}
print(dict_hero["赵一"])
dict_hero["丁二"]=51
print(dict_hero)
dict_hero["赵伟"]=39
print(dict_hero)
\ 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