Commit 8febaea1 by BellCodeEditor

save project

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