Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_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
3993feaa
authored
a year ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
5fe16fcc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
11
11.py
diy3.py
11
0 → 100644
View file @
3993feaa
i=1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
11.py
0 → 100644
View file @
3993feaa
for
i
in
range
(
1
,
10
):
for
a
in
range
(
1
,
i
+
1
):
print
(
a
,
"*"
,
i
,
"="
,(
a
*
i
),
end
=
" "
)
print
()
This diff is collapsed.
Click to expand it.
diy3.py
View file @
3993feaa
import
random
key
=
"懿彝兕镒燚咝鲕脦螣蟘貸貣鋱犆慝蓓贲冗"
mss
=
"汝乃s h ab i否?"
key_mss
=
""
for
i
in
mss
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
text
=
str1
+
str2
+
str3
key_mss
=
key_mss
+
text
print
(
key_mss
)
\ No newline at end of file
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"black"
)
colors
=
[
"green"
,
"red"
,
"orange"
,
"yellow"
]
for
i
in
range
(
1
,
300
):
pen
.
pencolor
(
colors
[
i
%
4
])
pen
.
forward
(
i
)
pen
.
right
(
91
)
turtle
.
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