Commit aa568722 by BellCodeEditor

save project

parent b4825be3
Showing with 8 additions and 15 deletions
import turtle score = {"语文":89,"数学":95,"英语":80}
def get_averang(score):
pen = turtle.Turtle() score = 0
pen.color('sienna') for subject,score in score.items():
# 画布大小 score += score
w = turtle.Screen() print("现在的总分是%d"%score)
w.bgcolor('wheat') # wheat小麦
\ No newline at end of file
# 移动到起点
pen.left(90)
pen.up()
pen.backward(150) # 后退
pen.down()
turtle.done()
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