- 博客(145)
- 收藏
- 关注
原创 【Python】前序和中序遍历重构二叉树(递归,迭代),后序和中序遍历重构二叉树(递归,迭代)
【Python】前序和中序遍历重构二叉树(递归,迭代),后序和中序遍历重构二叉树(递归,迭代)
2024-11-15 11:04:27
720
原创 【Python3】【力扣题】414. 第三大的数
【Python3】【力扣题】414. 第三大的数(集合/列表/降序,降序/依次比较两个元素,三个变量分别记录前3个最大值)
2024-11-08 10:39:54
432
1
原创 【Python】matplotlib:Python可视化库,补充:报错处理(安装超时,numpy/pandas/matplotlib版本匹配问题,scipy安装报错)
【Python】matplotlib:Python可视化库,补充:报错处理(安装超时,numpy/pandas/matplotlib版本匹配问题,scipy安装报错)
2024-09-18 16:31:48
994
原创 【Python】路径(绝对路径、相对路径,当前工作目录),模块搜索路径(添加),Python安装路径,补充:cmd(命令行窗口)运行Python文件
【Python】文件路径(绝对路径、相对路径,获取当前工作目录,判断绝对路径,转为/拼接为绝对路径),模块搜索路径(临时添加,永久添加),Python安装路径(获取),补充,cmd运行Python文件(命令行窗口)
2024-09-05 14:48:43
2692
原创 【Python】pandas:索引(Index), 多索引(MultiIndex)
【Python】pandas:索引(Index)【属性,修改索引(set_names,set_axis,rename,rename_axis,add_prefix, add_suffix,reindex,reindex_like,align,set_index,reset_index),普通列与索引列互转,索引排序】, 多索引(MultiIndex)【属性,修改索引,通过索引获取数据,索引排序】
2024-08-08 15:23:47
1121
1
原创 【Python】pandas:计算,统计,比较
【Python】pandas:计算(算术运算,与其他行/列计算,函数(算术、累积、矩阵乘法dot),应用一个函数(apply,applymap,map),应用多个函数(transform,agg),窗口函数(rolling,expanding,ewm)),统计(函数、交叉表crosstab),比较(函数,compare,equals),补充:combine,isin
2024-08-06 20:28:52
889
原创 【Python】pandas:替换值、添加行/列,删除行/列,更改形状(含数据透视表)
【Python】pandas:替换值(replace,where,mask)、添加行/列([ ],insert,loc,concat),删除行/列(pop,drop,concat),更改形状(含数据透视表)(pivot,pivot_table,melt,stack,unstack,swapaxes,transpose,T)
2024-08-01 18:40:48
1313
原创 【Python】pandas:排序、重复值、缺省值处理、合并、分组
【Python】pandas:排序(sort_index,sort_values,nsmallest,nlargest)、重复值(duplicated,drop_duplicates,value_counts,nunique)、缺省值处理(isna,isnull,notna,notnull,fillna,interpolate,combine_first,dropna,replace)、合并(join,merge,append,concat)、分组(groupby)
2024-07-30 17:23:09
1720
原创 【Python】pandas:查看数据(head, tail, values属性, at, iat, loc, iloc, [ ], sample)
【Python】pandas:查看数据(head, tail, values属性, at, iat, loc, iloc, [ ], sample)
2024-07-24 09:08:35
1112
原创 【Python】pandas:基本数据结构(Series和DataFrame),创建Series和DataFrame,将Series和DataFrame保存到文件 或从文件获取
【Python】pandas:基本数据结构(Series和DataFrame),创建Series和DataFrame,将Series和DataFrame保存到文件 或从文件获取
2024-07-22 15:51:59
878
原创 【Python】numpy:随机数
【Python】numpy:随机数(RandomState实例方法:np.random.uniform, np.random.random,np.random.rand,np.random.normal,np.random.randn, np.random.randint,np.random.shuffle,np.random.permutation,np.random.choice,Generator实例)
2024-07-21 10:29:59
801
原创 【Python】numpy:唯一值、排序、倒置、判断数组中元素是否在另一个数组中、两数组的交集/并集/差集/异域集、获取/修改数据(含索引/切片)
【Python】numpy:唯一值(np.unique)、排序(np.sort, np.argsort+np.take_along_axis, np.lexsort)、倒置(np.flip)、判断数组中元素是否在另一个数组中(np.in1d, np.isin)、两数组的交集/并集/差集/异域集(np.intersect1d, np.union1d, np.setdiff1d, np.setxor1d)、获取数据(索引,切片,条件判断,np.nonzero)
2024-07-17 18:16:21
720
原创 【Python】numpy:构建数组、数组属性、更改数组形状或维度、数组拷贝、数组合并、数组拆分、删除数组、数组保存到文件
【Python】numpy:构建数组(np.array, np.arange, np.linspace, np.identity等)、数组属性、更改数组形状或维度(np.newaxis,np.expand_dims,np.flatten,np.ravel,np.reshape,np.transpose,np.swapaxes)、数组拷贝、数组合并(np.concatenate,np.vstack等)、数组拆分(np.split等)、删除数组、数组保存到文件(save,savetxt)
2024-07-17 17:27:18
954
原创 【数据结构】(C语言):堆(二叉树的应用)
【数据结构】(C语言):堆(二叉树的应用),使用数组实现最小堆(包括添加、删除、遍历、获取根节点、清空)
2024-07-04 16:27:25
494
原创 【数据结构】(C语言):二叉搜索树(不使用递归)
【数据结构】(C语言):二叉搜索树(不使用递归),包括添加、删除、前序遍历、中序遍历、后序遍历、广度遍历(层级遍历)、查找元素
2024-07-04 15:09:06
587
原创 【Linux】centos7编写C语言程序,补充:使用yum安装软件包组
【Linux】centos7编写C语言程序(gcc,vim,编译链接,执行),补充:C语言常用工具,使用yum安装软件包组
2024-05-29 15:41:22
1050
原创 【Linux】解决误操作libc.so.6导致的问题,补充:升级glibc注意事项
【Linux】解决误操作libc.so.6导致的问题,补充:升级glibc注意事项
2024-05-28 19:52:22
11343
1
原创 【Linux】使用pip3安装pexpect,解决报错:the ssl module in Python is not available
【Linux】使用pip3安装pexpect,解决报错:the ssl module in Python is not available。确保openssl-1.1.1安装成功且相关目录和文件在指定位置,重新安装python3。
2024-05-27 19:18:24
550
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人