Commit 4d89e10e by BellCodeEditor

save project

parent 88da29f2
Showing with 10 additions and 3 deletions
player = input("玩家请出拳(石头/剪刀/布)")
print("玩家出拳"+player)
import random
nnn = ["石头""剪刀""布"]
nnn = ["石头","剪刀","布"]
abx = random.choice(nnn)
print("电脑出拳"+abx)
\ No newline at end of file
print("电脑出拳"+abx)
if print == abx
print("平")
elif(player == "石头" and abx == "剪刀") or (player == "剪刀" and abx == "布") or (player == "布" and abx == "石头")
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