Commit 90a70fa8 by BellCodeEditor

save project

parent c527aa93
Showing with 15 additions and 0 deletions
......@@ -4,3 +4,17 @@ print("玩家出拳:"+j)
jj=["石头","剪刀","布"]
ss=random.choice(jj)
print("电脑出拳"+ss)
if j==ss:
print("平局")
elif j=="石头" and ss=="剪刀":
print("你赢了")
elif j=="布" and ss=="石头":
print("你赢了")
elif j=="剪刀" and ss=="布":
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