Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_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
646b70b2
authored
Apr 09, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
79353ebc
Pipeline
#5313
failed in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
11 deletions
1.py
diy1.py
r.py
1.py
0 → 100644
View file @
646b70b2
i
=
5
username
=
"SB250"
userpassword
=
"笨蛋"
while
True
:
if
i
>
0
:
name
=
input
(
"请输入用户名:"
)
password
=
input
(
"请输入密码:"
)
i
-=
1
if
name
==
username
and
password
==
userpassward
:
print
(
"登录成功"
)
break
elif
name
!=
username
:
print
(
"用户名错误!!!登录失败,你是傻逼,吃屎去吧!!!"
)
print
(
"傻逼,你还有"
+
str
(
i
)
+
"次"
)
else
:
print
(
"密码错误!!!登录失败,你是傻逼,吃屎去吧!!!"
)
print
(
"傻逼,你还有"
+
str
(
i
)
+
"次"
)
else
:
print
(
"密码错误!!!登录失败,你是傻逼,吃屎去吧!!!"
)
exit
()
print
(
"你是傻逼,是头傻猪!!!"
)
\ No newline at end of file
diy1.py
View file @
646b70b2
students
=
[
"悟空"
,
"小贝"
,
"八戒"
,
"波奇"
]
import
random
message
=
"团长你就是个寄吧!来小亮给他整段活.你奶奶滴,为什么不喝!喝啊?不喝你也别想活着>黑你麻痹的是不是有大病你等着沃尔俄而饿饿"
key
=
"今晚第五季问及为何如往日edhfre?:>!@344657@#1$6848
%76
):>{}@!#3;;:》()(¥33{}{
%%
|。《》?@@332$@4#$^$!!@3345#@ufhdiudhfudnvjiskodwjwqos而复合,.!@#@!#*(?:>:{}_肥也容易黑人也"
c
=
""
noise
=
"!@#$@@#
%
^^
%
^
%
$#$@$W@#@#
%
^*&&(&*^*&*&^^
%
$YU
%%
$#@!@##@!#@##^
%
&^
%
$#
%
^$#R^&^&:?><>?<:)"
for
i
in
message
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
text
=
str1
+
str2
+
str3
c
=
c
+
text
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除
lost_c
=
list
(
c
)
?
index
=
random
.
randint
(
0
,
len
(
c
))
lost_c
.
insert
(
5
,
noise
)
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面
r
=
""
.
join
(
lost_c
)
?
print
(
c
)
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组,
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组
red
=
?
blue
=
?
r.py
0 → 100644
View file @
646b70b2
import
random
message
=
"团长你就是个寄吧!来小亮给他整段活.你奶奶滴,为什么不喝!喝啊?不喝你也别想活着>黑你麻痹的是不是有大病你等着沃尔俄而饿饿"
key
=
"今晚第五季问及为何如往日edhfre?:>!@344657@#1$6848
%76
):>{}@!#3;;:》()(¥33{}{
%%
|。《》?@@332$@4#$^$!!@3345#@ufhdiudhfudnvjiskodwjwqos而复合,.!@#@!#*(?:>:{}_肥也容易黑人也"
c
=
""
noise
=
"!@#$@@#
%
^^
%
^
%
$#$@$W@#@#
%
^*&&(&*^*&*&^^
%
$YU
%%
$#@!@##@!#@##^
%
&^
%
$#
%
^$#R^&^&:?><>?<:)"
for
i
in
message
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
text
=
str1
+
str2
+
str3
c
=
c
+
text
lost_c
=
list
(
c
)
index
=
random
.
randint
(
0
,
len
(
c
))
lost_c
.
insert
(
5
,
noise
)
r
=
""
.
join
(
lost_c
)
print
(
r
)
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