python基本数据类型操作总结
一:list
- append
- count
- insert
- reverse
- clear
- extend
- pop
- sort
- copy
- index
- remove
二:dict
- clear
- get
- pop
- update
- copy
- items
- popitem values
- fromkeys
- keys
- setdefault
三: tuple
- count
- index
四:set
- add()
- difference_update()
- isdisjoint()
- clear()
- discard()
- issubset()
- copy()
- intersection()
- issuperset()
- difference()
- intersection_update()
- pop()
五:str
- capitalize()
- encode()
- format()
- isalpha()
- islower()
- istitle()
- lower()
- casefold()
- endswith()
- format_map()
- isdecimal()
- isnumeric()
- isupper()
- lstrip()
- center()
- expandtabs()
- index()
- isdigit()
- isprintable()
- join()
- maketrans()
- count()
- find()
- isalnum()
- isidentifier()
- isspace()
- ljust()
- partition()
- replace()
- rpartition()
- splitlines()
- title()
- rfind()
- rsplit()
- startswith()
- translate()
- rindex()
- rstrip()
- strip()
- upper()
- rjust()
- split()
- swapcase()
- zfill()
还没有评论,来说两句吧...