Skip to content

yuweida/python-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

python数据结构

python 笔记

python 基本数据结构

元组


tuple = (1,2,"nisdasdsa","你啊好哦")
定义之后无法添加或修改
可以遍历 索引 分片

列表


list = ["a",1,45,"nihsadsa"]
list.append("d") 在列表末尾添加“d”
list.(3,"d") 在下表为3处添加“d”
list.remove() 删除元素

字典


dict = {"name":“誉为打”,“niha ”: "ddsd","da":24 }

del dict["ddsd"] 删除元素
通过键的值索引
无序

集合

set ={1,2,45,fdfd,3}
set.add()
set.remove()
无序

About

python 笔记

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages