Commit b350c70b by BellCodeEditor

save project

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