Commit c497a0f3 by BellCodeEditor

auto save

parent 61134446
Showing with 266 additions and 2 deletions
import random
_168_=input("请出拳(石头/剪刀/布)")
print("玩家出拳"+_168_)
\ No newline at end of file
print("玩家出拳"+_168_)
a=["石头","剪刀","布"]
jsj=random.choice(a)
print("计算机出拳"+_168_)
if player in a:
if _168_==jsj:
print("平局")
elif _168_=="石头" and jsj=="剪刀":
print("恭喜发财,红包拿来")
elif _168_=="剪刀" and jsj=="布":
print("恭喜发财,红包拿来")
elif _168_=="布" and jsj=="石头":
print("恭喜发财,红包拿来")
else:
print("你要失败了")
else:
print("文字错误")
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