Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_4
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
6d1e7370
authored
Nov 14, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
0792d622
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
13 deletions
diy.3py
diy1.py
diy2.py
diy4.py
task1.py
diy.3py
0 → 100644
View file @
6d1e7370
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("Hi,湖南疾控不归路",font=("Times",20,"normal"))
pen.hideturtle()
turtle.done()
\ No newline at end of file
diy1.py
0 → 100644
View file @
6d1e7370
name
=
input
(
"名字"
)
sare
=
input
(
"成绩"
)
print
(
name
+
"的英语成绩是"
+
sare
)
\ No newline at end of file
diy2.py
0 → 100644
View file @
6d1e7370
import
turtle
pen
=
turtle
.
Pen
()
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
left
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
left
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
left
(
90
)
pen
.
forward
(
100
)
pen
.
hideturtle
()
turtle
.
done
()
diy4.py
View file @
6d1e7370
...
...
@@ -3,27 +3,34 @@ key_message=""
# 私钥
key
=
"abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message
=
"诺依去看周末站吧"
a
=
input
()
noise
=
"gqwyhudg凤凰网个"
for
i
in
message
:
for
i
in
a
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
text
=
str1
+
str2
+
str3
key_message
=
key_message
+
text
list1
=
list
(
key_message
)
list1
.
insert
(
random
.
randint
(
0
,
len
(
key_message
)),
noise
)
list1
.
insert
(
random
.
randint
(
0
,
len
(
key_message
)),
"adgju覆盖IE㝉"
)
list1
.
insert
(
random
.
randint
(
0
,
len
(
key_message
)),
"dshfg我回家看到我国"
)
num
=
random
.
randint
(
0
,
len
(
key_message
))
list1
.
insert
(
num
,
noise
)
list1
.
insert
(
num
,
"adgju覆盖IE㝉"
)
list1
.
insert
(
num
,
"port:@#$
%
^&"
)
a
=
""
.
join
(
list1
)
print
(
a
)
import
random
num
=
0
num2
=
0
num3
=
0
for
i
in
range
(
3000
):
x
=
random
.
randint
(
8
,
10
)
if
x
==
8
:
num
=
num
+
1
elif
x
==
9
:
num2
=
num2
+
1
else
:
num3
=
num3
+
1
print
(
num
,
num2
,
num3
)
# 请使用私钥key,对message进行加
'''print([i for i in range(1, 11) if i
% 2
== 0])'''
\ No newline at end of file
task1.py
0 → 100644
View file @
6d1e7370
print
(
"姓名:景玉"
)
print
(
"性别:女"
)
print
(
"年龄:13"
)
print
(
"爱好:动漫"
)
\ 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