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

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

save project

parent 1f79e2da
Show whitespace changes
Inline Side-by-side
Showing with 7 additions and 0 deletions
  • diy1.py
diy1.py
View file @ 57740968
......@@ -4,3 +4,10 @@ import random
q=["石头","剪刀","布"]
z=random.choice(q)
print("计算机"+z)
if a==z:
print("平局")
elif ( a == "石头" and z == "剪刀" ) or ( a == "剪刀" and z== "布") or ( a == "布" and z=="石头"):
print("你赢了")
else:
print("你输了")
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