Commit 3143db2c by BellCodeEditor

save project

parent 1fb499a6
Showing with 8 additions and 2 deletions
......@@ -3,4 +3,10 @@ print("出"+player)
import random
list=["a","b","c"]
computer=random.choice(list)
print(computer)# 玩家出拳aa/
\ No newline at end of file
print("出"+computer)
if player==computer:
print("平局")
elif player=="a" and computer=="c" or player=="b" and computer=="a" or player=="c" and computer=="b":
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