Commit 6d98c60d by BellCodeEditor

save project

parent b5c6bbbe
Showing with 18 additions and 0 deletions
player=input("(a/b/c):")
print("出"+player)
import random
list=["a","b","c"]
computer=random.choice(list)
print("出"+computer)
if player==("a","b","c"):
if player==computer:
print("平局")
elif player=="a" and computer=="c" or player=="c" and computer=="b":
print("赢了")
else:
print("输了")
else:
print("错")
# 玩家出拳aa/
\ 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