Commit 093dc22e by BellCodeEditor

save project

parent 9c9ee837
Showing with 2209 additions and 2 deletions
palyer=input("请出拳:""石头"/"剪刀"/"布") palyer=input("请出拳:""石头"/"剪刀"/"布")
print("玩家出拳"+palyer) print("玩家出拳"+palyer)
SB=("石头"/"剪刀"/"布") SB=("石头"/"剪刀"/"布")
print("电脑出拳"+random.choice(SB)) print("电脑出拳"+random.choice(SB))
\ No newline at end of file if palyer==computer:
print("平局")
elif palyer=="布"and computer=="石头":
print("赢")
elif palyer=="石头"and computer=="剪刀":
print("赢")
elif palyer=="剪刀"and computer=="布":
print("赢")
elif palyer=="布"and computer=="石头":
print("赢")
else:
pass
\ 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