Commit eddb18ec by BellCodeEditor

save project

parent 47da610d
Showing with 4 additions and 3 deletions
......@@ -4,8 +4,8 @@ player = input("请出拳 (石头/剪刀/布):")
print("玩家出拳"+player)
list = ["石头","剪刀""石头"]
computer=rondom.choice()
print("计算机出拳"+list)
computer=rondom.choice(list)
print("计算机出拳"+computer)
if player==computer:
print("平局")
......@@ -17,5 +17,6 @@ if player==computer:
print("你赢了")
else:
print("你输了")
else:
("你赢了")
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