Commit 7c694c42 by BellCodeEditor

save project

parent 71fad717
Showing with 9 additions and 5 deletions
......@@ -4,13 +4,16 @@ import random
yyyyy=["石头","剪刀","布"]
eeeeeeeeeee=random.choice(yyyyy)
print("计算机出拳:"+eeeeeeeeeee)
if sdrg==eeeeeeeeeee:
if sdrg in yyyyy:
if sdrg==eeeeeeeeeee:
print("平局")
elif sdrg=="石头" and eeeeeeeeeee=="剪刀":
elif sdrg=="石头" and eeeeeeeeeee=="剪刀":
print("sdrg胜利")
elif sdrg=="剪刀" and eeeeeeeeeee=="布":
elif sdrg=="剪刀" and eeeeeeeeeee=="布":
print("sdrg胜利")
elif sdrg=="布" and eeeeeeeeeee=="石头":
elif sdrg=="布" and eeeeeeeeeee=="石头":
print("sdrg胜利")
else:
else:
print("eeeeeeeeeee胜利")
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