Commit 56255beb by BellCodeEditor

save project

parent 38e3faa9
Showing with 11 additions and 2 deletions
......@@ -5,4 +5,14 @@ print("玩家出",s)
list=["剪刀","石头","布"]
d=random.choice(list)
print("机器出",d)
print("玩家出",s)
\ No newline at end of file
print("玩家出",s)
if s=d:
print("平局")
elif s=="石头" and d=="剪刀":
print("玩家赢")
elif s=="石头" and d=="剪刀":
print("玩家赢")
elif s=="剪刀" and d=="布":
print("玩家赢")
else:
print("机器赢")
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