Commit 68703273 by BellCodeEditor

auto save

parent d6b86922
a={'1':3,'2':5,'3':7,'1':10,'1':15}
print(a)
\ No newline at end of file
score = {'语文':91,'数学':88,'英语':85} score = {'语文':91,'数学':88,'英语':85}
for v,t in score.items(): for i,v in score.items():
print(v,t) print(i,v)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
......
import turtle
turtle.penup()
turtle.goto(-90,90)
turtle.speed(1)
turtle.pendown()
turtle.fillcolor("yellow")
turtle.begin_fill()
for i in range(4):
turtle.forward(180)
turtle.right(90)
turtle.end_fill()
turtle.forward(180)
turtle.right(135)
turtle.fillcolor("red")
turtle.pencolor("black")
turtle.begin_fill()
turtle.goto(-90,-90)
turtle.left(135)
turtle.goto(90,-90)
turtle.left(90)
turtle.forward(180)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
turtle.fillcolor("red")
turtle.begin_fill()
turtle.left(45)
turtle.forward(100)
turtle.circle(50,180)
turtle.right(90)
turtle.circle(50,180)
turtle.forward(100)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
a=input("输入一个数:")
b=input("输入第二个数:")
print(a+"+"+b+"="+str(int(a)+int(b)))
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