Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-4-1_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
3b40c2e0
authored
Jan 26, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e160a898
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
diy1.py
diy1.py
0 → 100644
View file @
3b40c2e0
import
random
,
time
,
os
# 玩家出拳
os
.
system
(
'cls'
)
sb_player
=
input
(
"傻逼除出拳'石头/剪刀/布'"
)
print
(
'sb_player出拳'
+
sb_player
)
nb_computer
=
[
'石头'
,
'剪刀'
,
'布'
]
wondefulnb_computer
=
random
.
choice
(
nb_computer
)
print
(
"nb_computer"
+
wondefulnb_computer
)
if
sb_player
not
in
nb_computer
:
os
.
system
(
'cls'
)
print
(
'傻逼!你不守信用,你应该出正确的选项的,不可以这样!'
)
time
.
sleep
(
2
)
print
(
"不用理会那个祖安人,保持你的决心,kill that!"
)
elif
wondefulnb_computer
==
sb_player
:
print
(
"你平局了,这不是你想要的结局"
)
time
.
sleep
(
2
)
print
(
"this is wondefulnb_computer:'呕!不应该平局的,sb下亿局该是我胜利!'"
)
elif
wondefulnb_computer
==
'石头'
and
sb_player
==
'布'
or
wondefulnb_computer
==
'剪刀'
and
sb_player
==
'石头'
or
wondefulnb_computer
==
'布'
and
sb_player
==
'剪刀'
:
print
(
'you are won,horay for the 奥力给'
)
time
.
sleep
(
2
)
print
(
"this is wondefulnb_computer:'shirt!fuck you!下一次你就不会有好运了'"
)
else
:
print
(
"机器人在此,你白给了它白嫖了,保持你的决心,一举击败他!"
)
time
.
sleep
(
2
)
print
(
'this is wondefulnb_computer:捏嘿嘿嘿,姑姑嘎嘎嘎,你白给了,我白嫖了'
)
\ 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