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

bellcode / lesson2-3-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-3-1_DIY1
  • diy1.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 57b8efaa
    BellCodeEditor committed a year ago
    57b8efaa
diy1.py 474 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12
player=input("请出你的***:大便/尿/粪:")# 玩家出拳
print("玩家出拳:"+player)
import random
list=['大便','尿','粪']
computer=random.choice(list)
print("计算机出拳:"+computer)
if computer==player:
     print("滚蛋,你他妈平局了")
elif (computer=="大便"and player=="尿")or(computer=="粪"and player=="尿")or(computer=="尿"and player=="大便"):
   print("操,妈的让你赢了")
else:
   print("傻逼,他妈输了吧")