Commit 59fa077a by BellCodeEditor

save project

parent abbb5312
Showing with 9 additions and 2 deletions
......@@ -3,6 +3,12 @@ print("你出了:"+p)
import random
w=["石头","布","剪刀"]
w=["石头","剪刀","布"]
q=random.choice(w)
print("计算机出了:")
print("计算机出了:"+q)
if p==q:
print("平局")
elif (p=="剪刀" and q=="布") or (p=="布" and q=="石头") or (p=="石头" and q=="剪刀"):
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