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
f5f4e83b
authored
Nov 21, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
684c4d56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
diy1.py
diy1.py
View file @
f5f4e83b
...
@@ -2,12 +2,19 @@
...
@@ -2,12 +2,19 @@
ooooo
=
input
(
"玩家出/核弹/钞能力/老马"
)
ooooo
=
input
(
"玩家出/核弹/钞能力/老马"
)
print
(
"玩家出"
+
ooooo
)
print
(
"玩家出"
+
ooooo
)
import
random
import
random
ad
[
"核弹
”“钞能力”“
老马"
]
ad
[
"核弹
"
/
"钞能力"
/
"
老马"
]
computer
=
choice
.
random
(
ad
)
computer
=
choice
.
random
(
ad
)
print
(
random
)
print
(
random
)
if
ad
==
computer
:
print
(
"平局"
)
else
ooooo
==
"核弹"
and
computer
==
"钞能力"
:
print
(
"你输了"
)
else
ooooo
==
"核弹"
and
computer
==
"老马"
:
print
(
"你输了"
)
else
ooooo
==
"老马"
and
computer
==
"钞能力"
:
print
(
"你赢了"
)
else
ooooo
==
"钞能力"
and
computer
==
"核弹"
:
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