Commit 8cc2c881 by BellCodeEditor

save project

parent 07948199
Showing with 14 additions and 8 deletions
# # 玩家出拳 # 玩家出拳
# wj=input() wj=input()
# print("玩家出"+wj) print("玩家出:"+wj)
# import.random import random
# list1=["石头","剪刀","布"] list1=["石头","剪刀","布"]
# computer=random.choie(list1) computer=random.choice(list1)
# print("计算机出",computer) print("计算机出:"+computer)
\ No newline at end of file if xj==computer:
print("平局")
elif (xj=="石头" and computer=="剪刀") or (xj=="剪刀" and computer=="布") or (xj=="布" and computer=="石头"):
print("玩家赢")
else:
print("计算机赢")
\ 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