Commit 6014f588 by BellCodeEditor

save project

parent d05a1d48
Showing with 53 additions and 3 deletions
...@@ -21,6 +21,30 @@ pen.pendown() ...@@ -21,6 +21,30 @@ pen.pendown()
pen.goto(300,-50) pen.goto(300,-50)
pen.goto(50,200) pen.goto(50,200)
pen.goto(-200,-50) pen.goto(-200,-50)
pen.goto(50,-300)
pen.end_fill()
pen.fillcolor("blue")
pen.begin_fill()
pen.penup()
pen.goto(-80,90)
pen.pendown()
pen.forward(260)
pen.left(90)
pen.forward(250)
pen.left(90)
pen.forward(240)
pen.left(90)
pen.forward(240)
pen.left(90)
pen.end_fill() pen.end_fill()
turtle.done() turtle.done()
\ No newline at end of file
a={'小张':70,'小王':80,'小李':90}
a.pop('小张')
print(a)
dict={'北京':8,'上海':15,'广州':20,'深圳':21}
for k in dict.keys():
print(k,end=" ")
print()
for k in dict.values():
print(k,end=" ")
print()
for k,v in dict.items():
print(k,v,end=" ")
print()
data=dict.pop('北京')
print(data)
print(dict)
student1 = {'语文':91,'数学':88,'英语':85}
student2 = {'语文':97,'数学':98,'英语':90}
student3 = {'语文':95,'数学':100,'英语':93}
score={'悟空':student1 ,'诺依':student2,'小贝':student3}
name = input("名字:")
info = score[name]
for k,v in info.items():
print(k,v)
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