Commit 3bb138d8 by BellCodeEditor

save project

parent c0093727
Showing with 10 additions and 2 deletions
......@@ -4,4 +4,12 @@ player=input("请玩家出拳")
print("玩家出:"+player)
listl=["石头","剪刀","布"]
asdf=random.choice(listl)
print("计算机出:"+asdf)
\ No newline at end of file
print("计算机出:"+asdf)if player=="石头" and asdf=="剪刀":
print("玩家赢")
elif player=="剪刀" and asdf=="布":
print("玩家赢")
elif player=="布" and asdf=="石头":
print("玩家赢")
elif player==asdf:
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