Commit 2a664768 by BellCodeEditor

save project

parent c5d29cb9
Showing with 14 additions and 15 deletions
import turtle
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
len=screen.textinpurt("提示","你想要多大的爱心呀?")
lovesize=int(len)
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
student1={'语文':91,'数学':88,'英语':85}
student2={'语文':91,'数学':88,'英语':85}
student3={'语文':91,'数学':88,'英语':85}
score={'悟空':student1,'诺依':student2,'小贝':student3}
name=input("名字:")
print("*"*30)
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
print("*"*30)
else:
print("重输")
\ 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