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
cd12714b
authored
Apr 17, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4ea37e4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
不会的.py
画画.py
不会的.py
0 → 100644
View file @
cd12714b
a
=
1
a
=
1
b
=
1
while
True
:
b
+=
1
if
b
=
9
else
:
a
+=
1
pass
print
(
a
,
'*'
b
,
'='
(
a
*
b
))
\ No newline at end of file
画画.py
0 → 100644
View file @
cd12714b
import
turtle
import
turtle
colors
=
turtle
.
pen
()
screen
=
turtle
.
Screen
()
colors
=
[
"red"
,
"orangered"
,
"tomato"
,
"crimson"
]
screen
.
bgcolor
(
"cyan"
)
pen
=
turtle
.
Pen
()
hhhhhhhh
=
1
for
i
in
range
(
3000
):
pen
.
pencolor
(
colors
[
i
%
4
])
pen
.
forward
(
hhhhhhhh
)
hhhhhhhh
+=
1
pen
.
right
(
91
)
pen
.
hideturtle
()
turtle
.
done
()
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