Commit 5b1d6600 by BellCodeEditor

save project

parent f459a798
Showing with 4 additions and 3 deletions
...@@ -25,11 +25,11 @@ a = ["石头","剪刀","布"] ...@@ -25,11 +25,11 @@ a = ["石头","剪刀","布"]
s = random.choice(a) s = random.choice(a)
if s == u: if s == u:
print("平局") print("平局")
elif s == "剪刀" and s=="布" elif u== "剪刀" and s=="布"
print("胜利") print("胜利")
elif s == "布" and s=="石头" elif u == "布" and s=="石头"
print("胜利") print("胜利")
elif s == "石头" and s=="剪刀" elif u == "石头" and s=="剪刀"
print("胜利") print("胜利")
else: else:
print("输了") 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