Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-2_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
3c299f91
authored
Feb 27, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
dec1349c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
diy2.py
diy2.py
View file @
3c299f91
...
...
@@ -4,8 +4,8 @@ import random
list
=
[
"s"
,
"j"
,
"b"
]
b
=
random
.
choice
(
list
)
print
(
"电脑出的是"
+
b
)
if
if
a
==
b
:
if
player
in
list
:
if
a
==
b
:
print
(
平局
)
elif
(
a
==
"s"
and
b
==
"j"
)
or
(
a
==
"j"
and
b
==
"b"
)
or
(
a
==
"b"
and
b
==
"s"
):
print
(
"你赢了"
)
...
...
@@ -14,4 +14,6 @@ if
elif
a
==
"j"
and
b
==
"s"
:
print
(
"你出剪刀,电脑出石头,但是我把电脑打晕了,强制他出了布,所以你赢了"
)
elif
a
==
"b"
and
b
==
"j"
:
print
(
"你出布,电脑出石头,但是我把电脑打晕了,强制他出了石头,所以你赢了"
)
\ No newline at end of file
print
(
"你出布,电脑出石头,但是我把电脑打晕了,强制他出了石头,所以你赢了"
)
else
:
print
(
"告诉你输入sjb里的一个了,你™der啊 还™出别的,你可真是个sjb神经病"
)
\ No newline at end of file
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