Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson2-4-1_DIY1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson2-4-1_DIY1
  • diy1.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 6c1993fc
    BellCodeEditor committed 4 years ago
    6c1993fc
diy1.py 395 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13
# 玩家出拳
e=input("玩家出拳(石头\剪刀\布):")
print("玩家出拳"+e)
import random
SSR=["剪刀","石头","布"]
www=random.choice(SSR)
print("电脑出"+www)
if e==www:
    print("平局")
elif (e=="布" and www=="剪刀") or (e=="剪刀" and www=="石头") or (e=="石头" and www=="布"):
    print("辣鸡!你输了!")
else :
    print("你居然赢了!")