自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 python构建多叉树及多叉树的倒序遍历

AllTreePath=[] class MultywayTree(): class Node():#初始化节点 def __init__(self,data): self.data=data self.child_list=[] self.parent=None def __init__(self,root):#初始化根节点 self.root=self.Node(root)

2020-09-13 18:10:55 2216

原创 用python列出当前文件夹下所有子文件路径(包括子文件夹内文件)

def list_dir(CurPath=os.getcwd(),file_list=[]): FileList=os.listdir(CurPath) #print FileList for File in FileList: SubPath=CurPath+'\\'+File if os.path.isdir(File): list_dir(SubPath,file_list) else:

2020-09-04 16:15:44 2105

原创 自建哈希表

class LinkList(): class Node(): def __init__(self,item=None): self.item=item self.next=None class LinkListIterator(): def __init__(self,node): self.node=node def next(self): if se

2020-09-04 11:12:26 331

原创 numpy数组按某列排序

numpy.argsort() 返回排序索引 a=a[np.argsort(a,axis=0)[:,2],] example: a=np.array([[3,4,3],[2,1,7],[2,3,4],[5,6,2]]) a array([[3, 4, 3], [2, 1, 7], [2, 3, 4], [5, 6, 2]]) a=a[np.argsort(a,axis=0)[:,2],] a array([[5, 6, 2], [3, 4, 3], [2, 3, 4], [2, 1, 7]])

2020-08-14 17:29:30 5932 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除