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

bellcode / lesson2-5_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-5_DIY1
  • diy1.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · a11c5e43
    BellCodeEditor committed 4 years ago
    a11c5e43
diy1.py 251 Bytes
Edit
1 2 3 4 5 6 7 8 9 10
play=input("出什么?")
input("玩家"+player)# 玩家出拳
import random
list=["石头/剪刀、布"]
comput=random.choice(list)
print(comput)
if play==comput:
    print("平局")
elif play==石头 and comput:
    print("玩家赢了")