Commit f2f5116e by BellCodeEditor

save project

parent 7abb4542
Showing with 20 additions and 15 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)
if s==v : down()
print("平局") begin_fill()
elif (s=="石头" and v=="剪刀") or (s=="剪刀" and v=="布") or (s=="布" and v=="石头"): pensize(10)
print("你赢了") pencolor('red')
else: left(45)
print("你shu了") forward(i)
\ No newline at end of file circle(i/2,180)
right(90)
circle(i/2,180)
end_fill()
forward(i)
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