Commit 3e0621fa by BellCodeEditor

save project

parent 2e0f1a38
Showing with 43 additions and 2 deletions
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识:
# 来,我给你起个头~
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
\ No newline at end of file
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
l = [1,2,3,4,5]
#l.insert(5,6)
#l.append(6)
#m = [6]
#l.extend(m)
#l.pop(2)
#l.remove(3)
#del l[2]
#.clear(l)
#del l
#l[0] = 10
#print(l[:])
#print(l[:4])
#print(l[1:])
#print(l[2:0:-1])
#print(l)
m = "wkehciuqweqwue纪委是和好人是奇虎如何和任何是和女 日是hi而契合 ,、、。213784896139"
# print(list(m))
# print(",".join(m))
# print("".join(list(m)))
# print(m.split())
d = {"张三":15,"李四":12,"王五":18}
d["赵四"] = 9999999
print(d)
d["李四"] = 21
print(d)
del d["张三"]
print(d)
for a in d.keys():
print(a)
for b in d.values():
print(b)
for c,d in d.items():
print(c,d)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment