import xml.etree.ElementTree as ETtree = ET.parse("xmltest.xml")#操作的文件root = tree.getroot()#获取一个内存地址print(root.tag)#标签名# 遍历xml文档for child in root: pri ...
分类:
编程语言 时间:
2020-06-14 22:11:42
阅读次数:
103
https://www.luogu.com.cn/blog/codesonic/dsu-on-tree https://pzy.blog.luogu.org/dsu-on-tree-xue-xi-bi-ji ...
分类:
其他好文 时间:
2020-06-14 20:35:33
阅读次数:
52
题目 A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nod ...
分类:
其他好文 时间:
2020-06-14 20:31:35
阅读次数:
61
MySQL索引介绍 一、MySQL索引介绍 1.1.1 MySQL索引介绍 什么是MySQL索引? 索引类似大学图书馆建书目索引,可以提高数据检索的效率,降低数据库的IO成本。MySQL在300万条记录左右性能开始逐渐下降,虽然官方文档说500~800w记录,所以大数据量建立索引是非常有必要的。My ...
分类:
数据库 时间:
2020-06-14 18:39:44
阅读次数:
65
最小生成树大家都会,但是次小生成树呢?生成树算法在计算机运用广泛啊!!!! 先来讲一下定义: 设 $G=(V,E,w)$是连通的无向图,\(T\) 是图$G$ 的一棵最小生成树。如果有另一棵树$T1$,满足不存在(找不到)树$T’$,\(W_{T’}<W_{T1}\),则称T1是图G的次小生成树。( ...
分类:
其他好文 时间:
2020-06-14 16:35:27
阅读次数:
60
从零开始写编译器有多难?其实很简单,一学就会!想学?我教你啊。 1/5 P1intro P2source => tokens P3tokens => abstract syntax tree P4abstract syntax tree => high-level intermediate repr ...
分类:
其他好文 时间:
2020-06-14 14:57:56
阅读次数:
64
模拟退火 UVA10228 A Star not a Tree? 代码 模拟退火模板,求多边形费马点。 ...
分类:
编程语言 时间:
2020-06-14 01:19:13
阅读次数:
65
一、技术总结 首先说明一下,这一题只是简单的判断是否为红黑树,并没有详细的用到红黑树中的插入、删除等复杂情况。如果想学习可以参考这篇博客:https://www.jianshu.com/p/e136ec79235c 它是在搜索树以及平衡二叉树上发展而来的,但是又不完全是平衡二叉树,因为红黑树对高度差 ...
分类:
其他好文 时间:
2020-06-13 23:36:08
阅读次数:
85
Trie (Prefix Tree)前缀树 使用insert,search和startsWith方法实现Trie。 Example: Trie trie = new Trie(); trie.insert("apple"); trie.search("apple"); // returns true ...
分类:
其他好文 时间:
2020-06-13 23:35:06
阅读次数:
76
appium参考文档大全;https://testerhome.com/wiki/appiumdoccn https://testerhome.com/wiki/appium https://testerhome.com/wiki/data https://github.com/appium/app ...
分类:
移动开发 时间:
2020-06-13 16:03:13
阅读次数:
65