Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-3-1_DIY1
This project
Loading...
Sign in
Toggle navigation
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
8ce17276
authored
Jan 26, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
23dfff73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
diy1.py
diy1.py
0 → 100644
View file @
8ce17276
from
random
import
*
while
True
:
h
=
input
(
"请出去,石头/剪刀/不"
)
print
(
"大傻逼出"
+
h
)
大傻逼
=
[
"石头"
,
"剪刀"
,
"不"
]
j
=
choice
(
大傻逼
)
print
(
"大帅哥(作者)出"
+
j
)
if
h
not
in
大傻逼
:
print
(
"大帅哥(作者)说:“傻逼,在乱写,打断你的腿!!!”"
)
elif
h
==
j
:
print
(
"大帅哥(作者)说:“走屎运了,下次照虐你!!!”"
)
elif
(
h
==
"石头"
and
j
==
"不"
)
or
(
h
==
"不"
and
j
==
"剪刀"
)
or
(
h
==
"剪刀"
and
j
==
"石头"
):
print
(
"大帅哥(作者)说:“我赢了,垃圾,吃屎吧你!!!”"
)
else
:
print
(
"大帅哥(作者)说:“出老千,不得好死!!!”"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment