Commit 2973b5f9 by BellCodeEditor

save project

parent a0cbfb52
Showing with 15 additions and 2 deletions
# 玩家出拳
\ No newline at end of file
# 玩
oi=input("请出拳")
print('玩家出的是:'+oi)
list=["石头","剪刀","布"]
import random
sadf=random.choice(list)
print("电脑出的是:"+sadf)
if oi==sadf:
print("平局")
elif (oi=="石头"and sadf=="剪刀")or(oi=="剪刀"and sadf=="布")or(oi=="布"and sadf=="石头")
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