Commit 7f7ab18e by BellCodeEditor

save project

parent 4e665b1a
Showing with 11 additions and 5 deletions
player=input("你要出(剪刀/石头/布)?")
print("玩家出拳"+player)
p=input("你要出(1/2/3)?")
print("玩家出拳"+p)
import random
a=["石头","剪刀","布"]
a=["1","2","3"]
n=random.choice(a)
print(n)
\ No newline at end of file
print(n)
if p==n:
print(平局)
elif p=="1" and n=="2" or p=="2" and n=="3" or p=="3" and n=="1":
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