Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_2
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
4514e66d
authored
Jan 05, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d6301626
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
19 deletions
1.py
sdge.py
1.py
View file @
4514e66d
import
random
key
=
"我觉,得jw.,ns.d"
jiamiyuju
=
"周末一起去看动漫展吧!"
keyjeguo
=
""
ganrao
=
"port:@#$
%
^&"
for
i
in
jiamiyuju
:
a
=
i
a1
=
random
.
choice
(
key
)
a2
=
random
.
choice
(
key
)
b
=
a
+
a1
+
a2
keyjeguo
=
keyjeguo
+
b
c
=
list
(
keyjeguo
)
c
.
insert
(
random
.
randint
(
0
,
len
(
ganrao
)),
ganrao
)
d
=
""
.
join
(
c
)
print
(
d
)
\ No newline at end of file
bro1
=
"刘备"
bro1
=
"关羽"
bro1
=
"张飞"
bros
[
"刘备"
,
"关羽"
,
"张飞"
]
bro1
=
[
"刘备"
,
161
,
9.1
]
bro1
=
[
"关羽"
,
160
,
8.5
]
bro1
=
[
"张飞"
,
166
,
8.3
]
bro
[
1
]
=
"刘备"
bro
[
0
]
=
"关羽"
print
(
bors
)
\ No newline at end of file
sdge.py
View file @
4514e66d
for
i
in
range
(
1
,
10
,
2
):
for
j
in
range
(
1
,
i
+
1
):
print
(
j
,
"
*"
,
i
,
"="
,(
i
*
j
),
end
=
" "
)
for
i
in
range
(
1
,
10
):
for
j
in
range
(
1
,
i
+
1
,
1
):
print
(
j
,
"
/"
,
i
,
"="
,(
i
/
j
),
end
=
" "
)
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