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
Commit 044f20af authored a year ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 21ee8999
Show whitespace changes
Inline Side-by-side
Showing with 3 additions and 5 deletions
  • m.py
m.py
View file @ 044f20af
...@@ -9,14 +9,11 @@ print("电脑出拳:"+w) ...@@ -9,14 +9,11 @@ print("电脑出拳:"+w)
if q in list: if q in list:
if q==w: if q==w:
print("平局") print("平局")
elif q=="剪刀" and w=="布": elif (q=="剪刀" and w=="布") or (q=="石头" and w=="剪刀") or (q=="布" and w=="石头"):
print("你赢了")
elif q=="石头" and w=="剪刀":
print("你赢了")
elif q=="布" and w=="石头":
print("你赢了") print("你赢了")
else: else:
print("你输了") print("你输了")
else: else:
print("输入错误") print("输入错误")
\ No newline at end of file
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