Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-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
a164c3f3
authored
6 months ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bf0552cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
gcfg.py
gcfg.py
View file @
a164c3f3
import
random
import
random
a
=
input
(
"石头/剪刀/布"
)
a
=
input
(
"石头/剪刀/布"
)
print
(
"玩家出拳"
+
a
)
print
(
"玩家出拳"
+
a
)
print
(
a
)
u
=
[
"石头,剪刀,布"
]
d
=
[
"石头,剪刀,布"
]
d
=
random
.
choice
(
u
)
d
=
random
.
choice
()
print
(
u
)
print
(
d
)
if
a
in
u
:
if
a
in
d
:
if
a
==
d
:
if
a
==
d
:
print
(
"平局"
)
print
(
"平局"
)
elif
a
==
"石头"
and
d
==
"剪刀"
:
elif
a
==
"石头"
and
d
==
"剪刀"
:
...
...
This diff is collapsed.
Click to expand it.
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