Commit 269e4fef by BellCodeEditor

auto save

parent b5c6bbbe
Showing with 16 additions and 0 deletions
# 玩家出拳
f = input("(石头/剪刀/布):")
# 计算机出拳
import random
a=["石头","剪刀","布"]
n=random.choice(a)
print(n)
#补上条件判断
if(f == n):
print("平局")
elif(f=="剪刀" and n=="布" or f=="布" and n=="石头" or f=="布" and n=="石头" ):
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