Commit 4c6e98bf by BellCodeEditor

save project

parent 726eb626
Showing with 6 additions and 1 deletions
......@@ -4,6 +4,11 @@ import random
lao = ["石头","剪刀","布"]
com= random.choice(lao)
print("计算机出拳"+com)
if s==com
print("平局")
elif s=="石头" and com=="剪刀" or s=="布" and "石头" or s=="剪刀" and com=="布":
print("你赢了")
else:
print("你输了")
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