Commit c4c724f3 by BellCodeEditor

save project

parent aca76f64
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
pen.speed()
pen.hideturtle()
screen.bgcolor('red')
while i<135:
pen.pencolor()
pen.penup()
pen.goto(0,0)
pen.forward(200)
pen.pendown()
pen.circle(100)
pen.left(2)
i+=1
turtle.done()
\ No newline at end of file
a = {'语文':89,'数学':95,'英语':80}
def get_b(dict_1):
c = 0
for d,c in a.items():
c+=c
print('现在的总分是%d'%c)
q_c=c/len(a)
print('平均分是%d'%q_c)
get_b(a)
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