Commit e4995de4 by BellCodeEditor

save project

parent d93a026e
Showing with 13 additions and 4 deletions
# 玩家出拳# 玩家出拳# 玩家出拳# 玩家出拳
player = input("请玩家出拳(石头 / 剪刀 / 布)")
print(player)
p = input("请玩家出拳(石头 / 剪刀 / 布)")
print(p)
import random
ui = ["石头", " 剪刀" , "布"]
c = random.choice(ui)
print(c)
if
\ No newline at end of file
if p == c:
print("平局")
elif p == "布" and c == "石头":
print("玩家赢")
elif p == "石头" and c == "剪刀":
print("玩家赢")
elif p == "剪刀" and c == "布":
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