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

save project

parent f1be7d29
Show whitespace changes
Inline Side-by-side
Showing with 23 additions and 0 deletions
  • df.py/ss.py
df.py/ss.py 0 → 100644
View file @ 533cae96
import random
zxw=input("请你出拳:石头/剪刀/布")
print("我出拳:"+zxw)
list=["布","剪刀","石头"]
j=random.choice(list)
print(j)
if zxw in list:
if zxw == j:
print("竟然跟你打成平局")
elif zxw == "剪刀" and j == "布":
print("可恶,你赢了")
elif zxw == "石头" and j == "剪刀":
print("可恶,又让你赢了,气死我了,我槽")
elif zxw=="布" and j=="石头":
print("八嘎")
else:
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