Commit 8ccc7a44 by BellCodeEditor

save project

parent 290c6693
Showing with 11 additions and 0 deletions
......@@ -5,3 +5,13 @@ print("玩家出拳"+fmkl)
list=['石头','剪刀','布']
ddddd=random.choice(list)
print("计算机出拳"+ddddd)
if fmkl==ddddd:
print("平局")
elif fmkl=="石头"and ddddd=="剪刀":
print("你赢了")
elif fmkl=="剪刀"and ddddd=="布":
print("你赢了")
elif fmkl=="布"and ddddd=="石头":
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