Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_4
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
e20e93f9
authored
Dec 30, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
dc70412a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
65 additions
and
0 deletions
111.py
222.py
333.py
444.py
555.py
666.py
777.py
111.py
0 → 100644
View file @
e20e93f9
i
=
input
(
"请输入一个三位整数"
)
i
=
int
(
i
)
a
=
i
//
100
d
=
i
-
a
*
100
b
=
d
//
10
c
=
d
-
b
*
10
print
(
"百:"
,
a
,
"十:"
,
b
,
"个:"
,
c
)
222.py
0 → 100644
View file @
e20e93f9
import
turtle
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
333.py
0 → 100644
View file @
e20e93f9
a
=
input
(
"输入区号"
)
if
a
==
"020"
:
print
(
"广州"
)
if
a
==
"021"
:
print
(
"上海"
)
if
a
==
"022"
:
print
(
"天津"
)
if
a
==
"023"
:
print
(
"重庆"
)
if
a
==
"024"
:
print
(
"沈阳市"
)
if
a
==
"025"
:
print
(
"南京"
)
else
:
print
(
"没有该区号,请重新输入"
)
\ No newline at end of file
444.py
0 → 100644
View file @
e20e93f9
a
=
input
(
"请输入一个总秒数"
)
a
=
int
(
a
)
i
=
a
//
3600
d
=
a
-
i
*
3600
b
=
d
//
60
c
=
d
-
b
*
60
print
(
i
,
" "
,
b
,
" "
,
c
)
\ No newline at end of file
555.py
0 → 100644
View file @
e20e93f9
import
turtle
for
i
in
range
(
4
):
turtle
.
forward
(
180
)
turtle
.
right
(
90
)
666.py
0 → 100644
View file @
e20e93f9
i
=
input
(
"请输入一个学生的成绩"
)
i
=
int
(
i
)
if
i
>=
0
and
i
<=
100
:
if
i
<
60
:
print
(
"成绩为不合格"
)
if
i
>=
60
and
i
<
85
:
print
(
"成绩为良"
)
if
i
>
85
:
print
(
"成绩为优"
)
else
:
print
(
"没有这个成绩,请重新输入"
)
\ No newline at end of file
777.py
0 → 100644
View file @
e20e93f9
i
=
input
(
"请输入一段含有字母和数字的字符串"
)
a
=
[]
for
i
in
a
:
if
\ 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