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
d2038e43
authored
Sep 12, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
f9f3df5c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
diy1.py
fuck.py
pypypy.py
shit.py
diy1.py
View file @
d2038e43
# 玩家出拳
\ No newline at end of file
import
random
player
=
input
(
"请输入你要出的拳:"
)
print
(
"你出的拳是:"
,
player
)
list
=
[
"石头"
,
"剪刀"
,
"布"
,
"布"
,
"布"
]
computer
=
random
.
choice
(
list
)
print
(
"计算机出的是:"
,
computer
)
if
computer
==
player
:
print
(
"平局"
)
elif
player
==
"石头"
and
computer
==
"剪刀"
:
print
(
"胜利"
)
elif
player
==
"剪刀"
and
computer
==
"布"
:
print
(
"胜利"
)
elif
player
==
"布"
and
computer
==
"石头"
:
print
(
"胜利"
)
else
:
print
(
"失败"
)
\ No newline at end of file
fuck.py
deleted
100644 → 0
View file @
f9f3df5c
import
random
list
=
[
"石头"
,
"剪刀"
,
"布"
]
d
=
random
.
choice
(
list
)
print
(
d
)
\ No newline at end of file
pypypy.py
View file @
d2038e43
a
=
input
(
"出拳"
)
print
(
"你出的是"
+
a
)
\ No newline at end of file
shit.py
0 → 100644
View file @
d2038e43
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