Commit 472057ff by BellCodeEditor

save project

parent 2e7a91d6
Showing with 14 additions and 3 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
import random
l=["石头","布"]
l=["石头","布","剪刀"]
computer=random.choice(l)
print(computer)
\ No newline at end of file
print(computer)
if player==computer:
print("平局")
elif computer=="石头" and player=="布":
print("hhh")
elif computer=="布" and player=="剪刀":
print("hhh")
elif computer=="剪刀" and player=="石头":
print("hhh")
else:
print("sb")
\ 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