Commit 770d1d15 by BellCodeEditor

save project

parent 220fe62b
import turtle
turtle.tonny=Pen()
for in range(4):
tonny.forward(100)
left(90)
\ No newline at end of file
import turtle
turtle.tonny=Pen()
for i in range(4):
tonny.forward(100)
left(90)
\ No newline at end of file
import random
a=input("玩家出拳(剪刀/石头/布)")
print("玩家出拳"+a)
list=["剪刀","石头","布"]
computer=random.choice(list)
print("计算机出拳:"+computer)
if a==list:
print("平局")
elif a=="剪刀" and computer=="布" or a=="石头" and computer=="剪刀" or a=="布" and computer=="石头"
print("玩家赢了")
else
print("玩家输了")
# 玩家出拳
import random
a=input("玩家出拳(剪刀/石头/布)")
print("玩家出拳:"+a)
list=["剪刀","石头","布"]
computer=random.choice(list)
print("计算机出拳:"+computer)
if a==list:
print("平局")
elif a=="剪刀" and computer=="布" or a=="石头" and computer=="剪刀" or a=="布" and computer=="石头":
print("玩家赢了")
else:
print("玩家输了")
\ 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