zoukankan
html css js c++ java
python中的可哈希与不可哈希
什么是可哈希(hashable)?
简要的说
可哈希的数据类型
,即
不可变的数据结构
(
字符串str、元组tuple、对象集objects
)。
哈希有啥作用?
它是一个将大体量数据转化为很小数据的过程,甚至可以仅仅是一个数字,以便我们可以用在固定的时间复杂度下查询它,所以,哈希对高效的算法和数据结构很重要。
什么是不可哈希(unhashable)?
同理,
不可哈希的数据类型
,即可
变的数据结构
(
字典dict,列表list,集合set
)
查看全文
相关阅读:
ORA00845 MEMORY_TARGET not supported on this system (oracle11g for asianux3 )
文件处理命令
网络通信
Chapter05Usage and Configuration of the Oracle Shared Server
压缩解压缩命令
PAT 1088 Rational Arithmetic[模拟分数的加减乘除][难]
知识点最小二乘学习与正规表达式
Missing Number[回溯][难]
PAT 1065 A+B and C[大数运算][溢出]
PAT 1055 The World's Richest[排序][如何不超时]
原文地址:https://www.cnblogs.com/liangmingshen/p/10889172.html
最新文章
xml change
xml add
get linenumber
xml delete
Save doc
Perl中的闭包(closure)
实时数据分析Realtime data analysis frameworks (or stream system)
如何编写MapReduce代码
读万卷书不如行万里路
苦逼程序员的2011
热门文章
《win32多线程程序设计》随笔1
回调函数(callback)浅析
Apache Hadoop 0.23 介绍
个人与集体的抉择
断句符与注释行
vi编辑命令
Chapter03Basic Oracle Net Server Side Configuration
Chapter04Naming Method Configuation
权限管理命令
文件搜索命令
Copyright © 2011-2022 走看看