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
Commit 13e4087b authored 4 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 450ef9a2
Hide whitespace changes
Inline Side-by-side
Showing with 2 additions and 2 deletions
  • Untitled-1.py.py
  • diy1.py
Untitled-1.py.py
View file @ 13e4087b
# 玩家出拳
import random
c=['布','剪刀','石头']
computer=random.choice(c)
computer=random.choices(c)
a=input('请输入:')
print('player:'+a)
print('computer:'+computer)
......
This diff is collapsed. Click to expand it.
diy1.py
View file @ 13e4087b
......@@ -2,7 +2,7 @@
import random
a=input('请输入:')
c1=['布','剪刀','石头']
computer=(random.choice(c1)
computer=str(random.choice(c1))
print('player:',a)
print('computer:',computer)
if a in c1:
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment