第二章、python常用数据结构(2.1.1.1-2.1.2.2)------容器类型的定义、数据类型转换、索引、顺序表、哈希表、哈希算法

本文详细介绍了Python中的容器类型,包括数据定义、转换,以及容器类型中的数据特征,特别是哈希表与哈希算法。通过实例解释了如何在不同容器类型间转换,以及容器类型中的索引和哈希表的工作原理。哈希表通过哈希算法实现快速数据存取,降低了查找时间复杂度,提供了高效的查找性能。

第二章、python常用数据结构

       在编程语境里,定义(define)通常是指我们在代码书写中的指定行为,通常是按照一种标准规范来表示某种概念(比如,在代码中定义函数),创建(create)通常是指编译器(比如,python解释器)运行时的构造(构建)行为,编译器有自动创建机制,也会根据代码的内容进行有依据地创建执行,当然,编译器运行实际由CPU具体实现,操作系统(operating system)辅助参与,这里用具体实现这个词能突出编译器的作用,也并不影响表达执行的意思。这里强调编译器的创建是突出编译器的决策作用和主导作用。

       数据结构(data structure)是方便我们存储和操作数据的,不同的数据结构有不同的存储结构,不同的存储结构也对应

metrics: - name: sysDescr oid: 1.3.6.1.2.1.1.1 type: DisplayString help: A textual description of the entity - 1.3.6.1.2.1.1.1 - name: sysObjectID oid: 1.3.6.1.2.1.1.2 type: OctetString help: The vendor's authoritative identification of the network management subsystem contained in the entity - 1.3.6.1.2.1.1.2 - name: sysUpTime oid: 1.3.6.1.2.1.1.3 type: gauge help: The time (in hundredths of a second) since the network management portion of the system was last re-initialized. - 1.3.6.1.2.1.1.3 - name: sysName oid: 1.3.6.1.2.1.1.5 type: DisplayString help: An administratively-assigned name for this managed node - 1.3.6.1.2.1.1.5 - name: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString help: The textual name of the interface - 1.3.6.1.2.1.31.1.1.1.1 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifHCOutOctets oid: 1.3.6.1.2.1.31.1.1.1.10 type: counter help: The total number of octets transmitted out of the interface, including framing characters - 1.3.6.1.2.1.31.1.1.1.10 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifHighSpeed oid: 1.3.6.1.2.1.31.1.1.1.15 type: gauge help: An estimate of the interface's current bandwidth in units of 1,000,000 bits per second - 1.3.6.1.2.1.31.1.1.1.15 indexes: - labelname: ifIndex type: gauge lookups: - labels: - ifIndex labelname: ifName oid: 1.3.6.1.2.1.31.1.1.1.1 type: DisplayString - name: ifHCInOctets oid: 1.3.6.1.2.1.31.1.1.1.6 解释
最新发布
06-24
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

thefg

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值