Commit 7c694c42 by BellCodeEditor

save project

parent 71fad717
Showing with 13 additions and 10 deletions
...@@ -4,13 +4,16 @@ import random ...@@ -4,13 +4,16 @@ import random
yyyyy=["石头","剪刀","布"] yyyyy=["石头","剪刀","布"]
eeeeeeeeeee=random.choice(yyyyy) eeeeeeeeeee=random.choice(yyyyy)
print("计算机出拳:"+eeeeeeeeeee) print("计算机出拳:"+eeeeeeeeeee)
if sdrg==eeeeeeeeeee: if sdrg in yyyyy:
print("平局") if sdrg==eeeeeeeeeee:
elif sdrg=="石头" and eeeeeeeeeee=="剪刀": print("平局")
print("sdrg胜利") elif sdrg=="石头" and eeeeeeeeeee=="剪刀":
elif sdrg=="剪刀" and eeeeeeeeeee=="布": print("sdrg胜利")
print("sdrg胜利") elif sdrg=="剪刀" and eeeeeeeeeee=="布":
elif sdrg=="布" and eeeeeeeeeee=="石头": print("sdrg胜利")
print("sdrg胜利") elif sdrg=="布" and eeeeeeeeeee=="石头":
print("sdrg胜利")
else:
print("eeeeeeeeeee胜利")
else: else:
print("eeeeeeeeeee胜利") print("请重新输入")
\ No newline at end of file \ 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