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
2d08f771
authored
Mar 13, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
27cdd95c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
diy1.py
diy1.py
View file @
2d08f771
...
@@ -4,9 +4,13 @@ print("玩家出拳为:"+waaa)
...
@@ -4,9 +4,13 @@ print("玩家出拳为:"+waaa)
list
=
[
"剪刀"
,
"石头"
,
"布"
]
list
=
[
"剪刀"
,
"石头"
,
"布"
]
hhc
=
random
.
choice
(
list
)
hhc
=
random
.
choice
(
list
)
print
(
"计算机出拳为;"
+
hhc
)
print
(
"计算机出拳为;"
+
hhc
)
if
waaa
==
hhc
:
if
waaa
in
list
:
if
waaa
==
hhc
:
print
(
"平局,阿巴阿巴"
)
print
(
"平局,阿巴阿巴"
)
elif
(
waaa
==
"布"
and
hhc
==
"石头"
)
or
(
waaa
==
"石头"
and
hhc
==
"剪刀"
)
or
(
waaa
==
"剪刀"
and
hhc
==
"布"
):
elif
(
waaa
==
"布"
and
hhc
==
"石头"
)
or
(
waaa
==
"石头"
and
hhc
==
"剪刀"
)
or
(
waaa
==
"剪刀"
and
hhc
==
"布"
):
print
(
"你赢了,针不戳"
)
print
(
"你赢了,针不戳"
)
else
:
print
(
"你输了,鹅鹅鹅"
)
else
:
else
:
print
(
"你输了"
)
print
(
"你丫的输错了"
)
\ No newline at end of file
\ 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