Commit 8febaea1 by BellCodeEditor

save project

parent e00eadc4
Showing with 52 additions and 7 deletions
import random
from turtle import *
penup()
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
bgcolor("light blue")
color("light green")
setheading(-40)
fillcolor("green")
begin_fill()
circle(100,90)
left(90)
circle(100,90)
left(90)
end_fill()
list = ["石头","剪刀","布"]
computer = random.choice(list)
print("电脑出拳:"+computer)
\ No newline at end of file
color("light green")
setheading(135)
fillcolor("green")
begin_fill()
circle(100,90)
left(90)
circle(100,90)
left(90)
end_fill()
color("pink")
fillcolor("light pink")
begin_fill()
setheading(-15)
for i in range(5):
circle(100,90)
left(90)
circle(100,90)
left(90)
left(30)
end_fill()
color("#fef263")
fillcolor("#fef263")
begin_fill()
setheading(-15)
for i in range(5):
circle(50,90)
left(90)
circle(50,90)
left(90)
left(30)
end_fill()
hideturtle()
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