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
1bf90069
authored
Jan 15, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d74fca9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
kjmlk.py
kjmlk.py
View file @
1bf90069
...
@@ -4,10 +4,12 @@ print("玩家输入:"+wj)
...
@@ -4,10 +4,12 @@ print("玩家输入:"+wj)
list
=
[
"石头"
,
"剪刀"
,
"布"
]
list
=
[
"石头"
,
"剪刀"
,
"布"
]
jqr
=
random
.
choice
(
list
)
jqr
=
random
.
choice
(
list
)
print
(
"机器人输入:"
+
jqr
)
print
(
"机器人输入:"
+
jqr
)
if
wj
==
jqr
:
if
wj
in
list
:
print
(
"平局"
)
if
wj
==
jqr
:
elif
(
wj
==
"石头"
and
jqr
==
"剪刀"
)
or
(
wj
==
"剪刀"
and
jqr
==
"布"
)
or
(
wj
==
"布"
and
jqr
==
"石头"
):
print
(
"平局"
)
print
(
"you win."
)
elif
(
wj
==
"石头"
and
jqr
==
"剪刀"
)
or
(
wj
==
"剪刀"
and
jqr
==
"布"
)
or
(
wj
==
"布"
and
jqr
==
"石头"
):
print
(
"you win."
)
else
:
print
(
"his win."
)
else
:
else
:
print
(
"his win."
)
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