Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson12-1
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
d4ae9c78
authored
a year ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
7e3a2ff3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
1 deletions
dd.py
diy.py
ee.py
ff.py
gg.py
dd.py
0 → 100644
View file @
d4ae9c78
a
=
int
(
input
(
""
))
if
a
<
60
:
print
(
"不及格"
)
elif
60
<
a
<
85
:
print
(
"良"
)
else
:
print
(
"优"
)
This diff is collapsed.
Click to expand it.
diy.py
View file @
d4ae9c78
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
a
=
int
(
input
(
""
))
b
=
a
//
60
c
=
int
(
a
/
60
)
%
60
d
=
a
%
3600
print
(
b
,
c
,
d
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ee.py
0 → 100644
View file @
d4ae9c78
import
turtle
turtle
.
speed
(
1
)
turtle
.
begin_fill
()
turtle
.
color
(
"black"
)
turtle
.
fillcolor
(
"red"
)
turtle
.
forward
(
180
)
turtle
.
left
(
90
)
turtle
.
forward
(
180
)
turtle
.
goto
(
0
,
0
)
turtle
.
end_fill
()
turtle
.
begin_fill
()
turtle
.
color
(
"black"
)
turtle
.
fillcolor
(
"yellow"
)
turtle
.
forward
(
180
)
turtle
.
right
(
90
)
turtle
.
forward
(
180
)
turtle
.
end_fill
()
turtle
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ff.py
0 → 100644
View file @
d4ae9c78
a
=
input
(
"输入"
)
b
=
[]
for
i
in
a
:
if
i
not
in
"0123456789"
:
b
.
append
(
i
)
print
(
b
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
gg.py
0 → 100644
View file @
d4ae9c78
for
a
in
range
(
1
,
1296
):
b
=
a
+
4
for
c
in
range
(
1
,
1296
-
a
-
b
):
d
=
c
*
4
if
(
b
-
2
==
c
*
2
)
and
(
a
+
b
+
c
+
d
==
1296
)
:
print
(
a
,
b
,
c
,
d
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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