Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-5_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
a7d575d3
authored
May 23, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
ea6a024d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
diy1.py
sad.py
diy1.py
View file @
a7d575d3
import
turtle
import
random
while
True
:
while
True
:
import
random
# 玩家出拳
# 玩家出拳
list
=
[
"石头"
,
"剪刀"
,
"布"
]
list
=
[
"石头"
,
"剪刀"
,
"布"
]
player
=
input
(
"gkd谢谢(石头剪刀或者布):
\n
"
)
player
=
input
(
"gkd谢谢(石头剪刀或者布):
\n
"
)
...
@@ -8,11 +9,27 @@ while True:
...
@@ -8,11 +9,27 @@ while True:
computer
=
random
.
choice
(
list
)
computer
=
random
.
choice
(
list
)
print
(
"电脑出拳:"
+
computer
)
print
(
"电脑出拳:"
+
computer
)
if
computer
==
player
:
if
computer
==
player
:
print
(
"啥玩意啊就直接平局"
+
"
\n
----------------------------------------------------------------------------------------------------
"
)
print
(
"啥玩意啊就直接平局"
+
"
\n
"
+
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"
)
elif
player
==
"石头"
and
computer
==
"剪刀"
or
player
==
"剪刀"
and
computer
==
"布"
\
elif
player
==
"石头"
and
computer
==
"剪刀"
or
player
==
"剪刀"
and
computer
==
"布"
\
or
player
==
"布"
and
computer
==
"石头"
:
or
player
==
"布"
and
computer
==
"石头"
:
print
(
"666"
+
"
\n
----------------------------------------------------------------------------------------------------"
)
print
(
"你赢了呢,保加利亚王八!"
+
"
\n
"
+
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
)
pen
=
turtle
.
Pen
()
pen
.
color
(
"purple"
)
pen
.
right
(
90
)
pen
.
forward
(
20
)
pen
.
shapesize
(
20
)
pen
.
shape
(
"turtle"
)
pen
.
right
(
9999999999999999999999999999999999999999999999999999999999999999999999999999999
)
turtle
.
done
()
else
:
else
:
print
(
"菜狗"
+
"
\n
----------------------------------------------------------------------------------------------------"
)
print
(
"loooooooser,保加利亚王八!"
+
"
\n
"
+
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
)
pen
=
turtle
.
Pen
()
pen
.
color
(
"purple"
)
pen
.
right
(
90
)
pen
.
forward
(
20
)
pen
.
shapesize
(
20
)
pen
.
shape
(
"turtle"
)
pen
.
right
(
9999999999999999999999999999999999999999999999999999999999999999999999999999999
)
turtle
.
done
()
else
:
else
:
print
(
"ARE YOU F**KING KIDDING ME?!给爷正常一点啊"
)
print
(
"ARE YOU F**KING KIDDING ME?!给爷正常一点啊"
)
\ No newline at end of file
sad.py
0 → 100644
View file @
a7d575d3
import
turtle
pen
=
turtle
.
Pen
()
pen
.
write
(
"dashabi"
)
\ 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