Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_7
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
29f2a870
authored
Jul 15, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
c779fc36
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
12 deletions
heka.py
jmndh e.py
nui.py
tishi.py
heka.py
0 → 100644
View file @
29f2a870
# 用turtle写贺卡。(目标)
import
turtle
pen
=
turtle
.
Pen
()
wujiaoxing
=
[
5
,
144
,
150
]
taiyanghua
=
[
50
,
200
,
170
]
aixin
=
[
45
,
50
,
25
,
180
,
90
]
pen
.
pencolor
(
'red'
)
pen
.
fillcolor
(
'red'
)
pen
.
begin_fill
()
pen
.
pendown
()
for
i
in
range
(
wujiaoxing
[
0
]):
pen
.
right
(
wujiaoxing
[
1
])
pen
.
forward
(
wujiaoxing
[
2
])
pen
.
end_fill
()
pen
.
penup
()
pen
.
goto
(
100
,
0
)
pen
.
pendown
()
pen
.
color
(
"red"
,
"yellow"
)
pen
.
begin_fill
()
for
i
in
range
(
taiyanghua
[
0
]):
pen
.
forward
(
taiyanghua
[
1
])
pen
.
left
(
taiyanghua
[
2
])
pen
.
end_fill
()
pen
.
penup
()
pen
.
goto
(
100
,
100
)
pen
.
pendown
()
pen
.
fillcolor
(
'pink'
)
pen
.
begin_fill
()
pen
.
left
(
aixin
[
0
])
pen
.
forward
(
aixin
[
1
])
pen
.
circle
(
aixin
[
2
],
aixin
[
3
])
pen
.
right
(
aixin
[
4
])
pen
.
circle
(
aixin
[
2
],
aixin
[
3
])
pen
.
forward
(
aixin
[
1
])
pen
.
end_fill
()
# pen.forward(100)
# pen.pendown()
# for i in range(6):
# pen.right(150)
# pen.forward(150)
# pen.penup()
# pen.pencolor(......)
# pen.pensize(......)
# pen.penup(......)
# pen.pendown(......)
turtle
.
done
()
\ No newline at end of file
jmndh e.py
0 → 100644
View file @
29f2a870
import
random
i
=
input
(
"要加密的明文:"
)
k
=
mefcme
%%
(
N
:
>
::
LHJUNuwcnd
x
s
hwduwdi
o
,
-
dsid
sj
)
nui.py
deleted
100644 → 0
View file @
c779fc36
import
random
p
=
"xn dgrvucwsu8nwiehy$$#
%
^&^*!u9837hv4ecduhd"
l
=
input
(
"请输入要加密的文字:"
)
e
=
""
for
i
in
l
:
f1
=
i
f2
=
random
.
choice
(
p
)
f3
=
random
.
choice
(
p
)
e
=
e
+
f1
+
f2
+
f3
l
=
list
(
l
)
l
.
insert
(
random
.
randint
(
1
,
len
(
l
)),
"dd"
)
print
(
e
)
tishi.py
0 → 100644
View file @
29f2a870
# import turtle
# pen=turtle.Pen()
# pen.pencolor(......)
# pen.pensize(......)
# pen.penup(......)
# pen.pendown(......)
# for i in range(......):
# ......
# pen.forward(......)
# pen.circle(......)
# pen.fillcolor(......)
# pen.begin_fill(......)
# pen.end_fill(......)
# list={......}
# list=[......]
# pen.goto(......,......)
# for i in list:
# ......
# with["......","......",0,"......"]
\ 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