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
2a56c616
authored
Apr 10, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b5c6bbbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
0 deletions
ftg.py
kk.py
tt.py
ftg.py
0 → 100644
View file @
2a56c616
a
,
b
,
c
,
d
,
e
=
map
(
int
,
input
()
.
split
())
a
=
a
//
3
b
=
b
+
a
e
=
e
+
a
b
=
b
//
3
a
=
a
+
b
c
=
c
+
b
c
=
c
//
3
b
=
b
+
c
d
=
d
+
c
d
=
d
//
3
c
=
c
+
d
e
=
e
+
d
e
=
e
//
3
a
=
a
+
e
d
=
d
+
e
print
(
a
,
b
,
c
,
d
,
e
,
end
=
" "
)
kk.py
0 → 100644
View file @
2a56c616
"""
import math
a,b,c=map(int,input().split())
d=math.ceil(c/b)
if a>d:
print("剩下苹果:",a-d)
else:
print("剩余0个苹果")
"""
import
turtle
b
=
turtle
.
Pen
()
c
=
turtle
.
Pen
()
for
i
in
range
(
5
):
b
.
forward
(
200
)
b
.
left
(
144
)
c
.
dot
(
30
)
turtle
.
reset
()
tt.py
0 → 100644
View file @
2a56c616
import
random
num
=
0
while
True
:
a
=
input
(
"我出拳:"
)
print
(
"我出的拳是:"
+
a
)
cq
=
[
"石头"
,
"剪刀"
,
"布"
]
b
=
random
.
choice
(
cq
)
print
(
"计算机出拳:"
+
b
)
if
a
in
cq
:
if
a
==
b
:
print
(
"平局"
)
elif
(
a
==
"石头"
and
b
==
"剪刀"
)
or
(
a
==
"剪刀"
and
b
==
"布"
)
or
(
a
==
"布"
and
b
==
"石头"
):
print
(
"我赢了"
)
num
=
num
+
1
if
num
==
3
:
break
else
:
print
(
"计算机赢了"
)
else
:
print
(
"输入错误"
)
\ 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