Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-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
d69e0a5e
authored
Aug 18, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
08f70553
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
11 deletions
diy.py
kmooj98uojgkjfxtpy
diy.py
View file @
d69e0a5e
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识:
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识:
# 来,我给你起个头~
# 来,我给你起个头~
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
bro1
=
"关羽"
# bro1="关羽"
bro2
=
"刘备"
# bro2="刘备"
bro3
=
"张飞"
# bro3="张飞"
bros
=
[
"刘备"
,
"关羽"
,
"张飞"
]
# bros=["刘备","关羽","张飞"]
bro1
=
[
"关羽"
,
160
,
8.5
]
# bro1=["关羽",160,8.5]
bro2
=
[
"刘备"
,
161
,
9.1
]
# bro2=["刘备",161,9.1]
bro3
=
[
"张飞"
,
166
,
8.3
]
# bro3=["张飞",166,8.3]
bros
[
0
]
=
"关羽"
# bros[0]="关羽"
bros
[
1
]
=
"刘备"
# bros[1]="刘备"
print
(
bros
)
# print(bros)
\ No newline at end of file
# list=['d','h','a','k','t','w','l']
# list.insert(0,1)
# print(list)
# list.append(60)
# print(list)
# c=[5,6,57,636,67,687,54]
# list.extend(c)
# print(list)
# list=[0,1,2,3,4,5,6,7,8,9]
# a=list[1:4]
# print(a)
# list=[0,1,2,3,4,5,6,7,8,9]
# a=list[:5]
# print(a)
# list=[0,1,2,3,4,5,6,7,8,9]
# a=list[6:]
# print(a)
# list=[0,1,2,3,4,5,6,7,8,9]
# a=list[:]
# print(a)
# list=['张三',3563432546,'李四',602346467343674,'王五',82254434334534745437,'赵六',935566645566634364637634436,'刘七',99999999999999999999999999999999999999999999,]
# name='罗八'
# bili=1000000000000000000000000000000000000000000000000
# for i in range(len(list)):
# if i%2==1 and list[i]>=bili:
# list.insert(i-1,name)
# list.insert(i,blil)
# print(list[(len(list)-6):])
import
random
n
=
'的空间。景观提升咯反抗撒旦撒高客单,是根据利夫卡是攻击、力设计公司电话价打开链接奥克兰沙发哈哈发撒回复和喀什发货方辣椒水安徽发拉横幅拉横幅发黑疯啦考试回复噶尔黄河泛滥就爱看释放了沙发卡萨活佛拉会发生看'
massage
=
'注意,我方资源短缺,请求支援!'
fghj
=
''
for
i
in
massage
:
str1
=
i
str2
=
random
.
choice
(
n
)
str3
=
random
.
choice
(
n
)
text
=
str1
+
str2
+
str3
fghj
=
fghj
+
text
print
(
fghj
)
kmooj98uojgkjfxtpy
0 → 100644
View file @
d69e0a5e
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