Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson10-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
159f18af
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
458c0c34
c149345l949p219a9948/wx379744
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
a.py
b.py
a.py
0 → 100644
View file @
159f18af
a
=
int
(
input
(
"请输入一个三位数:"
))
#输入数字
print
(
"百:"
+
str
(
a
//
100
)
+
" "
+
"十:"
+
str
(
a
%
100
//
10
)
+
" "
+
"个:"
+
str
(
a
%
100
%
10
))
#打印
\ No newline at end of file
This diff is collapsed.
Click to expand it.
b.py
0 → 100644
View file @
159f18af
import
turtle
#导入模块
pen
=
turtle
.
Pen
()
pen
.
color
(
"black"
,
"blue"
)
#设置颜色
for
i
in
range
(
4
):
#画正方形
pen
.
forward
(
200
)
pen
.
left
(
90
)
pen
.
penup
()
#抬笔
pen
.
goto
(
200
/
2
,
200
/
2
-
50
)
#移动
pen
.
pendown
()
#落笔
pen
.
begin_fill
()
#开始填充
pen
.
circle
(
50
,
360
)
#画圆
pen
.
end_fill
()
#结束填充
pen
.
hideturtle
()
#隐藏画笔
turtle
.
done
()
#保存画布
\ 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