Commit f6e53de0 by BellCodeEditor

save project

parent f2f7ee7f
Showing with 32 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
pen.speed('fast')
pen.hideturtle()
screen.bgcolor('black')
i=0
while i<135:
pen.pencolor('pink')
pen.penup()
pen.goto(0,0)
pen.forward(200)
pen.pendown()
pen.circle(100)
pen.left(2)
i+=1
turtle.done()
def get_average(scores):
score = 0
sum = 0
for subject, scores in scores.items():
sum += score
print('现在的总分是%d'%sum)
ave_score = score/len(scores)
print('平均分是%d'%ave_score)
get_average(scores)
\ 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