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
  • vgujh.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · ef0b835c
    BellCodeEditor committed 3 years ago
    ef0b835c
vgujh.py 384 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
q=input("请出拳")
print("玩家出:"+q)
import random
t=["石头","剪刀","布"]
y=random.chioce(t)
print("电脑出"+y)
if q in t:
    if q==y:
        print("平局")
    elif (q=="石头" and y=="剪刀") or (q=="剪刀" and y=="布") or (q=="布" and y=="石头"):
        print("耶")
    else:
        print("哎")
else:
    pring("????????????????????????")