上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 26 下一页
摘要: 迭代器 wiki百科:在 Python 中,迭代器是遵循迭代协议的对象。使用 iter() 从任何序列对象中得到迭代器(如 list, tuple, dictionary, set 等)。另一种形式的输入迭代器是 generator(生成器)。 举例 # 迭代器部分 # 简单的遍历方法 for it 阅读全文
posted @ 2020-08-21 14:56 Wonz 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 关系型数据库 定义:由二维表及其之间的联系所组成的一个数据组织。 举例:mysql/oracle/sql server/sqlite 优点: 易于维护:表结构 使用方便:SQL语言通用 复杂操作:支持SQL,支持复杂查询 缺点: 读写性能比较差 固定的表结构,灵活度稍欠 硬盘I/O是一个很大的瓶颈 阅读全文
posted @ 2020-08-21 14:04 Wonz 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 装饰器 本质是一个接受参数为函数的函数。 作用:为一个已经实现的方法添加额外的通用功能,比如日志记录、运行计时等。 举例 不带参数的装饰器,不用@ # 不带参数的装饰器 def deco_test(func): def wrapper(*args, **kwargs): print("before 阅读全文
posted @ 2020-08-21 10:54 Wonz 阅读(130) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0098. Validate Binary Search Tree验证二叉搜索树【Medium】【Python】【二叉树】 Problem LeetCode Given a binary tree, determine if it is a valid binary search 阅读全文
posted @ 2020-06-28 20:22 Wonz 阅读(128) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0700. Search in a Binary Search Tree二叉搜索树中的搜索【Easy】【Python】【二叉树】 Problem LeetCode Given the root node of a binary search tree (BST) and a val 阅读全文
posted @ 2020-06-28 20:02 Wonz 阅读(157) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0701. Insert into a Binary Search Tree 二叉搜索树中的插入操作【Medium】【Python】【二叉树】 Problem LeetCode Given the root node of a binary search tree (BST) an 阅读全文
posted @ 2020-06-28 19:45 Wonz 阅读(141) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0450. Delete Node in a BST 删除二叉搜索树中的节点【Medium】【Python】【二叉树】 Problem LeetCode Given a root node reference of a BST and a key, delete the node 阅读全文
posted @ 2020-06-28 19:04 Wonz 阅读(228) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0100. Same Tree 相同的树【Easy】【Python】【二叉树】 Problem LeetCode Given two binary trees, write a function to check if they are the same or not. Two b 阅读全文
posted @ 2020-06-28 09:47 Wonz 阅读(173) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1410. HTML Entity Parser HTML 实体解析器【Medium】【Python】【字符串】 Problem "LeetCode" HTML entity parser is the parser that takes HTML code as input an 阅读全文
posted @ 2020-04-12 22:22 Wonz 阅读(275) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1409. Queries on a Permutation With Key查询带键的排列【Medium】【Python】【模拟】 Problem "LeetCode" Given the array of positive integers between and , you 阅读全文
posted @ 2020-04-12 22:08 Wonz 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 26 下一页