- break;continue;pass
- ord();chr()
- 格式化:%s;f’str’;format
- 序列:字符串、列表、元组...
索引切片:sname[start:end:step]
内置函数:min();max();list();str();len();sum();sorted()
- 列表:append();del;count();index();remove();sort();copy()
- 元组:len();max();min();tuple()
- 字典:dict(); .get(); .clear()
- 集合: set();add();update();remove();clear();len()
- 函数:匿名函数lambdat
- 模块与包:from ... import ...
- 面向对象:封装、继承、多态
继承:class 基类(子类1,子类2....)
- 文件操作:open(file,mode,encondng='utf-8'); write();writelines();close(); with open() as wf: read();readline();readlines()
- os模块:getcwd();listdir();os.path.abspath();os.path.split();os.path.join();os.path.getmtime();os.path.getatime();os.parh.exist();os.path.isfile();os.path.getsize();os.mkdir();os.chdir().os.system()
- 迭代器与生成器:__iter__(); __next__(); isinstance( , Iterable) | yield()
- 装饰器:闭包 | 装饰器
- numpy:
np.array();np.array(range());np.arrange() | .dtype;.shape;.size;.ndim;.itemsize;.reshape(());