Commit db6f1ff8 by BellCodeEditor

save project

parent 710b13ba
Showing with 11 additions and 6 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
import random
player=int(input("请出拳 0为石头 1为剪刀 2为布"))
computer=random.randint(0,2)
if((player==0)and(computer==1))or((player==1)and(computer===2))or((player==2)and(computer==0)):
print("你真棒")
elif player==computer:
print("平局了")
elif ((player==0)and(computer==2))or((player==1)and(computer==0))or((player==0)and(computer==1)):
print("你输了")
else:
print("专心点1")
......
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