Commit 6e5d859e by BellCodeEditor

save project

parent f3472995
Showing with 7 additions and 0 deletions
...@@ -4,3 +4,9 @@ import random ...@@ -4,3 +4,9 @@ import random
g=["石头","剪刀","布"] g=["石头","剪刀","布"]
j=random.choice(g) j=random.choice(g)
print(j) print(j)
if u==j:
print("平局")
elif (u=="石头" and j=="剪刀")or(u=="剪刀" and j=="布")or(u=="布" and j=="石头"):
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