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 · 6a77953f
    BellCodeEditor committed 3 years ago
    6a77953f
diy1.py 191 Bytes
1 2 3 4 5 6 7 8
import random
# 玩家出拳
a = input("你出啥?石/剪/布:")
print("玩家出的是----" +a )

#电脑出拳
d = random.choice(["石","剪","布"])
print("电脑出的是----" +d )