Commit bcea473d by BellCodeEditor

auto save

parent 3412e74d
...@@ -12,7 +12,7 @@ while True : ...@@ -12,7 +12,7 @@ while True :
name = input("名字:") name = input("名字:")
if name in score : if name in score :
a = score[name] a = score[name]
print('*'*30) #print('*'*30)
for k,v in a.items(): for k,v in a.items():
print(k,v) print(k,v)
print('*'*30) print('*'*30)
......
print(5/5)
import turtle
import math
turtle.speed(10)
turtle.up()
turtle.goto(-300,200)
turtle.down()
turtle.begin_fill()
turtle.fillcolor("red")
turtle.pencolor("red")
for i in range(2):
turtle.forward(600)
turtle.right(90)
turtle.forward(400)
turtle.right(90)
turtle.end_fill()
#主星
turtle.speed(1)
turtle.fillcolor("yellow")
turtle.pencolor("yellow")
turtle.up()
turtle.goto(-200,100)
turtle.down()
turtle.setheading(90)
turtle.forward(60)
turtle.begin_fill()
turtle.right(162)
for i in range (5):
turtle.forward(80*math.sqrt(2))
turtle.right(144)
turtle.end_fill()
#第1颗副星
turtle.up()
turtle.goto(-100,160)
turtle.down()
turtle.setheading(-(180-math.degrees(math.atan(0.6))))
turtle.forward(20)
turtle.begin_fill()
turtle.left(162)
for i in range (5):
turtle.forward(80*math.sqrt(2)/3)
turtle.left(144)
turtle.end_fill()
#第2颗副星
turtle.up()
turtle.goto(-60,120)
turtle.down()
turtle.setheading(-(90+math.degrees(math.atan(7))))
turtle.forward(20)
turtle.begin_fill()
turtle.left(162)
for i in range (5):
turtle.forward(80*math.sqrt(2)/3)
turtle.left(144)
turtle.end_fill()
#第3颗副星
turtle.up()
turtle.goto(-60,60)
turtle.down()
turtle.setheading(90+math.degrees(math.atan(7/2)))
turtle.forward(20)
turtle.begin_fill()
turtle.left(162)
for i in range (5):
turtle.forward(80*math.sqrt(2)/3)
turtle.left(144)
turtle.end_fill()
#第4颗副星
turtle.up()
turtle.goto(-100,20)
turtle.down()
turtle.setheading(180-(math.degrees(math.atan(4/5))))
turtle.forward(20)
turtle.begin_fill()
turtle.left(162)
for i in range (5):
turtle.forward(80*math.sqrt(2)/3)
turtle.left(144)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
q=["p","y","t","h","o","n"]
q=["p","y","t","h","o","n"]
q="".join(q)
print(q)
\ 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