Commit 54385332 by BellCodeEditor

save project

parent 13a01994
Showing with 9 additions and 0 deletions
sb=input("请出拳:石头/剪刀/布")
print("玩家出拳:"+sb)
import random import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
fuck=random.choice(list) fuck=random.choice(list)
print(fuck) print(fuck)
if sb==fuck:
print("平局")
elif sb=="石头" and fuck=="剪刀" or sb=="剪刀" and fuck=="布" or sb=="布" and fuck=="石头":
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