Commit ed1652a2 by BellCodeEditor

save project

parent 5ab88987
a=input("sr1gs:")
b=input("sr2gs:")
print("hs:",int(a)+int(b))
print("js:",int(a)*int(b))
print("xs:",int(a)-int(b))
print("cs:",int(a)/int(b))
print("ys:",int(a)//int(b))
print("a3cs:",int(a)**int(b))
\ No newline at end of file
a=input("sr1s")
b=input("sr2s")
print(a+"+"+b+"="+str(int(a)+int(b)))
print(a+"-"+b+"="+str(int(a)-int(b)))
print(a+"*"+b+"="+str(int(a)+int(b)))
\ No newline at end of file
score = {'语文':91,'数学':88,'英语':85}
for k,v in score.items():
print(k,v)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
a=input("sr1s")
import turtle
turtle.penup()
turtle.goto(-90,90)
turtle.pendown()
turtle.speed(1)
turtle.fillcolor("yellow")
turtle.begin_fill()
turtle.forward(180)
turtle.goto(-90,-90)
turtle.left(90)
turtle.forward(180)
turtle.end_fill()
turtle.right(90)
turtle.forward(180)
turtle.fillcolor("red")
turtle.begin_fill()
turtle.right(90)
turtle.forward(180)
turtle.right(90)
turtle.forward(180)
turtle.goto(90,90)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
turtle.penup()
turtle.goto(0,-100)
turtle.pendown()
turtle.fillcolor("red")
turtle.begin_fill()
turtle.left(45)
turtle.forward(200)
turtle.circle(100,180)
turtle.right(90)
turtle.circle(100,180)
turtle.forward(200)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
\ 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