Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_1
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
a536810b
authored
May 11, 2025
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
6a058c61
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
diy1.py
qq.py
qqq.py
diy1.py
View file @
a536810b
dict
=
{}
dict
[
'师父'
]
=
'唐三藏'
dict
[
'大师兄'
]
=
'孙行者'
print
(
dict
)
qq.py
View file @
a536810b
name
=
"刘强"
power
=
66
hero
=
[
"赵一"
,
30
,
"丁二"
,
37
,
" 孙五"
,
52
,
"王猛"
89
,
"周亮"
98
]
for
i
in
range
(
len
(
hero
)):
if
i
%
2
==
1
and
hero
[
i
]
>=
power
:
hero
.
insert
(
i
-
1
,
name
)
hero
.
insert
(
i
,
power
)
print
()
\ No newline at end of file
username
=
"python"
userpassword
=
"123456"
while
True
:
name
=
input
(
"请输入用户名:"
)
passwork
=
input
(
"请输入密码:"
)
if
name
==
username
and
passwork
==
userpassword
print
(
"登录成功"
)
print
(
"错"
)
print
(
"欢迎"
)
\ No newline at end of file
qqq.py
0 → 100644
View file @
a536810b
import
random
key
=
"666,演都不演了"
message
=
"奶龙"
for
i
in
message
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
tex
=
str1
+
str2
+
str3
print
(
text
)
\ 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