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
fb240375
authored
Feb 27, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
61da267e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
3 deletions
1.py
diy.3
diy1.py
diy2.py
diy3.py
1.py
0 → 100644
View file @
fb240375
for
i
in
range
(
20
,
81
,
2
):
print
(
i
)
\ No newline at end of file
diy.3
0 → 100644
View file @
fb240375
a="3"
print(type(a))
\ No newline at end of file
diy1.py
View file @
fb240375
...
...
@@ -13,7 +13,7 @@
# distance+=1
# pen.right(121)
# # 隐藏画笔,保存画布
'''
import turtle
p=turtle.Pen()
colors=["red","yellow","green","pink"]
...
...
@@ -25,4 +25,4 @@ for i in range(1,1000):
p.forward(i)
p.left(91)
p.hideturtle()
turtle
.
done
()
\ No newline at end of file
turtle.done()
\ No newline at end of file
diy2.py
0 → 100644
View file @
fb240375
import
turtle
p
=
turtle
.
Pen
()
# for i in range(20,81,2):
# p.forward(i)
# p.left(60)
bc
=
20
while
bc
<
81
:
p
.
forward
(
bc
)
p
.
left
(
60
)
bc
=
bc
+
2
turtle
.
done
()
diy3.py
0 → 100644
View file @
fb240375
a
=
"3"
print
(
type
(
a
))
b
=
4
print
(
type
(
b
))
c
=
3.0
print
(
type
(
c
))
d
=
input
(
"请输入一个数字:"
)
print
(
d
)
print
(
type
(
d
))
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