Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson16_3
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
011acae7
authored
Feb 12, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
8e0e8884
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
54 deletions
diy1.py
diy1.py
View file @
011acae7
...
@@ -10,61 +10,81 @@
...
@@ -10,61 +10,81 @@
# print("YingYu")
# print("YingYu")
# elif zhou == 2 or 4 or 5 or 7:
# elif zhou == 2 or 4 or 5 or 7:
# print("gx")
# print("gx")
# else:
#
#
else:
# print("meiyou")
#
#
print("meiyou")
# import random
#
#
import random
# name = input("name")
#
#
name = input("name")
# a=["a",'d','f','g','h','tg','h','gt','h','tr','h','yrh']
#
#
a=["a",'d','f','g','h','tg','h','gt','h','tr','h','yrh']
# s=random.choice(a)
#
#
s=random.choice(a)
# print("ADGXCH"+name+"nm"+s)
# # print("ADGXCH"+name+"nm"+s)
# import turtle
# # import turtle
# a=turtle.Pen()
# # a=turtle.Pen()
# # a.left(135)
# # # a.left(135)
# # # a.forward(100)
# # # a.right(90)
# # # a.circle(-50,180)
# # a.right(180)
# # a.forward(100)
# # a.forward(100)
# # a.right(90)
# # a.left(90)
# # a.circle(-50,180)
# # a.circle(50,180)
# a.right(180)
# # a.hideturtle()
# a.forward(100)
# # turtle.done()
# a.left(90)
# # import turtle
# a.circle(50,180)
# # a=turtle.Pen()
# a.hideturtle()
# # a.pensize(5)
# turtle.done()
# # a.pencolor("blue")
# import turtle
# # a.circle(50)
# a=turtle.Pen()
# # a.penup()
# a.pensize(5)
# # a.goto(100,0)
# a.pencolor("blue")
# # a.pendown()
# a.circle(50)
# # a.pencolor("black")
# a.penup()
# # a.circle(50)
# a.goto(100,0)
# # a.penup()
# a.pendown()
# # a.goto(200,0)
# a.pencolor("black")
# # a.pendown()
# a.circle(50)
# # a.pencolor("red")
# a.penup()
# # a.circle(50)
# a.goto(200,0)
# # a.penup()
# a.pendown()
# # a.goto(45,-90)
# a.pencolor("red")
# # a.pencolor("yellow")
# a.circle(50)
# # a.penup()
# a.penup()
# # a.goto(50,-90)
# a.goto(45,-90)
# # a.pendown()
# a.pencolor("yellow")
# # a.circle(50)
# a.penup()
# # a.pencolor("green")
# a.goto(50,-90)
# # a.penup()
# a.pendown()
# # a.goto(145,-90)
# a.circle(50)
# # a.pendown()
# a.pencolor("green")
# # a.circle(50)
# a.penup()
# a.goto(145,-90)
# a.pendown()
# a.circle(50)
# turtle.done()
# # turtle.done()
a
=
"python"
# a = "python"
# print(list(a))
# # print(list(a))
b
=
list
(
a
)
# b=list(a)
print
(
str
(
b
))
# print(str(b))
# c=str(b)
# # c=str(b)
# print(type(c))
# # print(type(c))
# print(len(c))
# # print(len(c))
d
=
''
.
join
(
b
)
#(列表转字符串“”中每个字符间)
# d=''.join(b) #(列表转字符串“”中每个字符间)
# print(d)
import
random
message
=
input
(
""
)
kmessage
=
""
noise
=
"gfhbhgvbrtkbvthjbntrhjbkrtbtybrtbrtbet"
for
i
in
message
:
strr
=
i
strrr
=
random
.
choice
(
noise
)
strrrr
=
random
.
choice
(
noise
)
hua
=
strr
+
strrr
+
strrrr
kmessage
=
kmessage
+
hua
print
(
kmessage
)
kkk
=
"@
%#
^!!?"
aa
=
list
(
kmessage
)
suiji
=
random
.
randint
(
0
,
len
(
kmessage
))
aa
.
insert
(
suiji
,
kkk
)
d
=
""
.
join
(
aa
)
print
(
d
)
print
(
d
)
\ 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