Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_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
01ca5590
authored
Feb 07, 2026
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
80a789cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletions
1.py
11.py
diy1.py
1.py
View file @
01ca5590
n
=
int
(
input
(
"请输入小明原来购买的铅笔数量:"
))
a
=
5
*
n
+
3
print
(
"按照促销价格可以购买"
,
a
//
4
,
"支钢笔"
,
"还剩余"
,
a
%
4
,
"元。"
)
\ No newline at end of file
11.py
View file @
01ca5590
import
turtle
a
=
turtle
.
Pen
()
a
.
shape
(
"circle"
)
a
.
pensize
(
5
)
a
.
goto
(
200
,
100
)
a
.
goto
(
200
,
-
100
)
a
.
goto
(
-
200
,
-
100
)
a
.
goto
(
-
200
,
100
)
a
.
goto
(
200
,
100
)
a
.
goto
(
0
,
0
)
a
.
goto
(
-
200
,
100
)
a
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
diy1.py
View file @
01ca5590
print
(
"a"
)
s
=
input
(
"请输入下一句"
)
print
(
s
)
\ 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