Commit f2f5116e by BellCodeEditor

save project

parent 7abb4542
Showing with 19 additions and 14 deletions
s=input("玩家出拳(石头,剪刀,布)") from turtle import*
print("玩家出拳"+s) write('你好\n憨憨',font=('Times',20,'normal'))
import random i=100
h=("石头","剪刀","布") bgcolor('red')
v=random.choice(h)
print("电脑出"+v) bgcolor('pink')
if s==h: up()
goto(150,-90)
down()
begin_fill()
pensize(10)
pencolor('red')
left(45)
forward(i)
circle(i/2,180)
right(90)
circle(i/2,180)
end_fill()
forward(i)
if s==v :
print("平局")
elif (s=="石头" and v=="剪刀") or (s=="剪刀" and v=="布") or (s=="布" and v=="石头"):
print("你赢了")
else:
print("你shu了")
\ 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