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
1978ed56
authored
Jul 14, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7a422b1f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
111.py
1111.py
diy1.py
111.py
0 → 100644
View file @
1978ed56
a
=
[
"语文"
,
"数学"
,
"英语"
,
"历史"
,
"地理"
]
a
.
insert
(
0
,
"物理"
)
i
=
0
while
i
<
len
(
a
):
if
a
[
i
]
==
"英语"
:
print
(
"英语的索引号是:"
,
i
)
i
=
i
+
1
\ No newline at end of file
1111.py
0 → 100644
View file @
1978ed56
year
=
int
(
input
(
"请输入您的出生年份:"
))
print
(
"到了2030年,您的年龄是:"
,
2030
-
year
)
\ No newline at end of file
diy1.py
View file @
1978ed56
...
@@ -6,10 +6,11 @@ c=int(score.textinput("你要画多大的爱心?","请输入尺寸"))
...
@@ -6,10 +6,11 @@ c=int(score.textinput("你要画多大的爱心?","请输入尺寸"))
bg
=
score
.
textinput
(
"你要画布什么颜色?"
,
"请输入英文颜色"
)
bg
=
score
.
textinput
(
"你要画布什么颜色?"
,
"请输入英文颜色"
)
score
.
bgcolor
(
bg
)
score
.
bgcolor
(
bg
)
pencolor
=
score
.
textinput
(
"你要画笔颜色?"
,
"请输入英文颜色"
)
pencolor
=
score
.
textinput
(
"你要画笔颜色?"
,
"请输入英文颜色"
)
nr
=
score
.
textinput
(
"你想对我说什么?"
,
"请输入内容"
)
pen
.
color
(
pencolor
)
pen
.
color
(
pencolor
)
pen
.
penup
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"你好,
\n
诺伊,
\n
我给你背一首诗吧:春晓
\n
孟浩然
\n
春眠不觉晓
\n
处处闻啼鸟
\n
夜来风雨声
\n
花落知多少."
,
font
=
(
"Time"
,
15
,
"normal"
))
pen
.
write
(
nr
,
font
=
(
"Time"
,
15
,
"normal"
))
pen
.
hideturtle
()
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
=
turtle
.
Pen
()
pen1
.
pensize
(
5
)
pen1
.
pensize
(
5
)
...
...
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