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
198b6d0a
authored
Mar 20, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
12694a1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
caiquan.py
huifuka.py
caiquan.py
View file @
198b6d0a
import
random
player
=
input
(
"玩家请出拳(石头/剪刀/布):"
)
num
=
0
list
=
[
"石头"
,
"剪刀"
,
"布"
]
while
(
not
player
in
list
)
and
num
<
5
player
=
print
(
"输入错误,请重新输入(石头//)"
)
computer
=
random
.
choice
(
list
)
if
player
in
list
:
if
player
==
computer
:
...
...
huifuka.py
0 → 100644
View file @
198b6d0a
import
turtle
pen
=
turtle
.
Pen
()
pen
.
write
(
"电话号电话号和生活费,
\n
但还是期待可我接哦一
\n
"
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
hideturtle
()
turtle
.
done
()
\ 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