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

bellcode / lesson2-1-2_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-1-2_DIY1
  • qw.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · a2582cd6
    BellCodeEditor committed 3 years ago
    a2582cd6
qw.py 441 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
qwer=input("请出拳")
print("玩家出:"+qwer)
import random
t =["石头","剪刀","布"]
y =random.choice(t)
print("电脑出:"+y)
if qwer in t:
    if qwer==y:
        print("平局")
    elif (qwer=="石头"and y =="剪刀") or (qwer=="剪刀"and y=="布")or(qwer=="布"and y=="石头"):bubu
        print("恭喜,你赢了")
    
        
    else:
        print("很遗憾,你输了")
else:
    print("错误")