Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-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
e3e7e381
authored
Feb 20, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
5574ec88
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
1.py
2.py
diy1.py
1.py
0 → 100644
View file @
e3e7e381
a
=
int
(
input
(
"停车时间: "
))
if
a
<=
2
:
print
(
5
)
else
:
b
=
5
+
(
a
-
2
)
*
2
print
(
b
)
\ No newline at end of file
2.py
0 → 100644
View file @
e3e7e381
n
=
int
(
input
(
"正整数: "
))
c
=
0
for
i
in
range
(
1
,
n
+
1
,
1
):
a
=
i
%
10
b
=
(
i
-
a
)
//
10
if
a
==
1
:
c
=
c
+
1
if
b
==
1
:
c
=
c
+
1
print
(
c
)
\ No newline at end of file
diy1.py
View file @
e3e7e381
# 利用write()帮助悟空给诺依回信吧~
import
turtle
Pen
=
import
.
Pen
()
Pen
.
write
(
"海默说:
\n
你没救了"
,
font
(
"Times"
,
30
,
"normal"
))
Pen
.
hideturtle
()
turtle
.
done
\ No newline at end of file
xq
=
[
"1--星期一"
,
"2--星期二"
,
"3--星期三"
,
"4--星期四"
,
"5--星期五"
,
"6--星期六"
,
"7--星期日"
]
a
=
int
(
input
(
"输入数字: "
))
print
(
xq
[
a
-
1
])
\ 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