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
89864357
authored
Apr 14, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bfe37c8c
Pipeline
#11771
failed in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
18 deletions
diy1.py
diy1.py
View file @
89864357
import
random
key
=
"基础阶段成绩单寄出的基础决定农村的经济迟到就迟到基层党建成绩单jkxjc"
message
=
"诺依,周末一起去看漫画展吧!"
key_message
=
""
noise
=
"
%%
^^
%
$$3$
%%
^^^&^^
%
$
%#
$#@#@#!@$
%
^&"
for
i
in
message
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
text
=
str1
+
str2
+
str3
key_message
=
key_message
+
text
list_message
=
list
(
key_message
)
b
=
random
.
randint
(
0
,
len
(
list_message
))
list_message
.
insert
(
b
,
noise
)
abc
=
""
.
join
(
list_message
)
print
(
abc
)
\ 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
)
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
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