Commit 81bb13fc by BellCodeEditor

auto save

parent c79c0c37
Showing with 56 additions and 13 deletions
import turtle
turtle.circle(100)
turtle.done()
\ No newline at end of file
import turtle
turtle.penup()
turtle.goto(0,-200)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("black")
turtle.circle(200)
turtle.end_fill()
turtle.penup()
turtle.goto(-100,50)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("blue")
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.goto(100,50)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("red")
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.goto(0,50)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("green")
turtle.circle(-50,steps=3)
turtle.end_fill()
turtle.penup()
turtle.goto(-150,-70)
turtle.pendown()
turtle.pencolor("yellow")
turtle.goto(0,-170)
turtle.goto(150,-70)
turtle.hideturtle()
turtle.done()
\ No newline at end of file
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
inport random
list=["石头,剪刀,布"]
computer=random.choice(list)
print(computer)
if player=computer
print("平局")
elif (player=="剪刀" and computer=="布") or (player=="石头" and computer=="剪刀") or (player=="布" and computer=="石头"):
print("你赢了")
else:
print("很遗憾,你输了")
\ No newline at end of file
import turtle
turtle.circle(100)
turtle.done()
\ No newline at end of file
π=3.14
π=3.14
r=float(input("请输入一个大于0的半径:"))
a=2*r
b=2*π*r
c=π*r*r
print("圆的半径是:%.2f"%a)
print("圆的周长是:%.2f"%b)
print("圆的面积是:%.2f"%c)
\ 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