Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_DIY1
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
07ab5d5e
authored
Feb 06, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
f004d7ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
diy1.py
h.py
o.py
diy1.py
View file @
07ab5d5e
...
...
@@ -9,7 +9,7 @@ pen.write("小明我爱你",font=("Times",18,"normal"))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
.
pensize
(
5
)
len
=
screen
.
textinput
(
"
提示"
,
"
你想要多大的爱心呀?"
)
len
=
screen
.
textinput
(
"你想要多大的爱心呀?"
)
lovesize
=
int
(
len
)
pen1
.
pencolor
(
"blue"
)
len
=
190
...
...
h.py
0 → 100644
View file @
07ab5d5e
screen
.
textinput
(
'tishi'
)
# for i in range(100):
# a=a+1
# print(a)
# a="你好"
# b=0
# while b<100:
# print(a)
# b=b+1
# if b ==100:
# break
o.py
0 → 100644
View file @
07ab5d5e
import
random
ttt
=
input
(
'输入你要加密的密码:'
)
key
=
'whdui二个大爷肚饿厚度和!@#。,*&……
%
¥#'
key2
=
' '
for
i
in
ttt
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
t
=
str1
+
str2
+
str3
key2
=
key2
+
t
i
=
len
(
key2
)
u
=
random
.
randint
(
0
,
i
)
hhh
=
list
(
key2
)
hhh
.
insert
(
u
,
'iejdiejf'
)
ggg
=
''
.
join
(
hhh
)
print
(
ggg
)
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