Commit 8b7a5a0d by BellCodeEditor

save project

parent 220fe62b
Showing with 14 additions and 0 deletions
# 玩家出拳
abc=input("请出拳:(石头/剪刀/布)")
print("玩家出拳"+abc)
import random
tian=("石头","剪刀","布")
tt=random.choice(tian)
print("机器出拳:"+tt)
if abc==tt:
print("平局")
#elif ((abc=="剪刀" and tt=="布") or (abc=="布" and tt=="石头") or (abc=="石头" and tt == "剪刀")):
#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