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
00adaa53
authored
Jul 10, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3220f90f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
18 deletions
XR.py
diy1.py
XR.py
0 → 100644
View file @
00adaa53
import
turtle
pen
=
turtle
.
Pen
pen
.
write
(
"诺依
\n
你这个傻逼
\n
我要耗尽一生煮了你这个老母狙(猪),"
font
=
(
"Ttimes"
,
30
,
"normal"
)
\ No newline at end of file
diy1.py
deleted
100644 → 0
View file @
3220f90f
# 玩家出拳
while
True
:
oo
=
input
(
"请玩家出拳:(剪刀,石头,布)"
)
print
(
"玩家出拳:"
+
oo
)
import
random
list
=
[
"剪刀"
,
"石头"
,
"布"
]
acre
=
random
.
choice
(
list
)
print
(
acre
)
if
acre
==
oo
:
print
(
"平局"
)
elif
acre
==
"布"
and
oo
==
"剪刀"
:
print
(
"你赢了。"
)
elif
acre
==
"剪刀"
and
oo
==
"石头"
:
print
(
"你赢了。"
)
elif
acre
==
"石头"
and
oo
==
"布"
:
print
(
"你赢了。"
)
else
:
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