Commit 36d66b41 by BellCodeEditor

save project

parent 62876259
Showing with 10 additions and 1 deletions
m = ["石头","剪刀","布"]
p = input("请出拳")
print("玩家出"+p)
import random as r
m = ["石头","剪刀","布"]
c = r.choice(m)
print(c)
if p == c:
print("平局")
elif p == "石头" and c == "剪刀" or p == "剪刀" and c == "布" or p == "石头":
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