Commit 7761dcbc by BellCodeEditor

save project

parent d1f02b86
Showing with 9 additions and 4 deletions
import random
player=input("请出拳(石头/剪刀/本):") player=input("请出拳(石头/剪刀/本):")
print("沙雕出拳:"+player) print("玩家出拳:"+player)
list=["石头","剪刀","本"] list=["石头","剪刀","本"]
computer=random.choice(list) computer=random.choice(list)
print("dndcs"+computer) print("电脑调查得出是"+computer)
if (player="石头"andcomputer="剪刀")or(player="布"andcomputer="石头")or(player="剪刀"andcomputer="布") if (player=="石头" and computer=="剪刀")or(player=="本" and computer=="石头")or(player=="剪刀" and computer=="本"):
\ No newline at end of file print("sli")
elif computer==player:
print("pj")
else:
print("sl")
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