Commit c9c0128c by BellCodeEditor

save project

parent ced4f98a
Showing with 9 additions and 8 deletions
player=input("你出什么拳?")
print("出的拳:"+player) player=input("你出什么拳?")
import random print("出的拳:"+player)
computer=["石头","剪刀","布"] import random
print(random.choice(computer)) computer=["石头","剪刀","布"]
if computer==player: print(random.choice(computer))
if computer==player:
print("平局") print("平局")
elif : elif :
print("你输了") print("你输了")
else: else:
print("你赢了") print("你赢了")
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