Commit 5aac184a by BellCodeEditor

save project

parent 0a5a301e
Showing with 0 additions and 12 deletions
import random
player=input("请选择:火,水,木")
print("我"+player)
list=["火","水","木"]
computer=random.choice(list)
print(computer)
if player==computer:
print("平")
elif(player=="火" and computer=="木") or (player=="木" and computer=="水") or(player=="水" and computer=="火"):
print("赢")
else:
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