5 刘知杭 静态类型的Python 类型中的特殊非整数值 如果非要将string映射到int,则必须将某些非int表示范围内的str映射到目标 类型中的特殊非整数值。换言之,我们需要一个int+1大小的类型。 Golang的问题——多表达式返回值错误处理 Golang的错误处理本质是拿积类型当和类型用 拓展思考 放飞自我 更激进的类型推导,以及自动泛化 正文 大力出奇迹的类型收集 LemonHX曾提出过一种想法: 在运行时收集类型信息。0 码力 | 42 页 | 6.87 MB | 1 年前3
PyMuPDF 1.24.2 Documentationa page modified in this way will look like this: 1. original text 2. header line 3. footer line 54 Chapter 10. Text PyMuPDF Documentation, Release 1.24.2 PyMuPDF has several means to re-establish Syria;Damascus;2079000;9.7%;2019 Belarus;Minsk;1996553;20.8%;2022 Austria;Vienna;1962779;22.0%;2022 Poland;Warsaw;1863056;4.9%;2021 Philippines;Manila;1846513;1.6%;2020 Mali;Bamako;1809106;8.3%;2009 Malaysia;Kuala expandtabs insert_textbox, 302, 369 extract image non-PDF, 75 image PDF, 76 table, 55 text rectangle, 54 extract_font() (Document method), 249 extract_image examples, 76 extract_image() (Document method)0 码力 | 565 页 | 6.84 MB | 1 年前3
Hello 算法 1.0.0b2 Python版50 4.4. 小结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 5. 栈与队列 55 5.1. 栈 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . self.__nums + [0] * self.capacity() * (self.__extend_ratio - 1) # 更新列表容量 4. 数组与链表 hello‑algo.com 54 self.__capacity = len(self.__nums) def to_array(self) -> list[int]: """ 返回有效长度的列表 """ return self 1.8 之后,HashMap 内数组长度大于 64 时,长度大于 8 的链 表会被转化为「红黑树」,以提升查找性能。 Python 采用「开放寻址」。字典 dict 使用伪随机数进行探测。 Golang 采用「链式地址」。Go 规定每个桶最多存储 8 个键值对,超出容量则连接一个溢出桶; 当溢出桶过多时,会执行一次特殊的等量扩容操作,以保证性能。 6.3. 小结 ‧ 向哈希表中输入一个键0 码力 | 186 页 | 15.69 MB | 1 年前3
2 张孝峰 Python与云 AWS的Python原生应用浅析 超过165项服务 数千个不同的API AWS Tools and SDKs • Python (boto3) • C++ • PHP • .NET • Ruby • Java • Golang • Node.js • JavaScript for Web AWS Command Line Interface pip install awscli 基于SDK for Python0 码力 | 42 页 | 8.12 MB | 1 年前3
Hello 算法 1.0.0b4 Python版中,我们提到存储数组的内存空间必须是连续的,而当我们需要申请一个非常大的数组时,空闲内存中可能 没有这么大的连续空间。与数组相比,链表更具灵活性,它可以被存储在非连续的内存空间中。 4. 数组与链表 hello‑algo.com 54 「链表 Linked List」是一种线性数据结构,其每个元素都是一个节点对象,各个节点之间通过指针连接,从 当前节点通过指针可以访问到下一个节点。由于指针记录了下个节点的内存地址,因此无需保证内存地址的 64 且链表长度达到 8 时,链表会被转 换为红黑树以提升查找性能。 Python 采用开放寻址。字典 dict 使用伪随机数进行探测。 6. 散列表 hello‑algo.com 99 Golang 采用链式地址。Go 规定每个桶最多存储 8 个键值对,超出容量则连接一个溢出桶;当溢出桶过多时, 会执行一次特殊的等量扩容操作,以确保性能。 6.3. 哈希算法 在上两节中,我们了解了哈0 码力 | 329 页 | 27.34 MB | 1 年前3
Hello 算法 1.0.0b5 Python版着一个重要事实:计算机内部的硬件电路主要是基 于加法运算设计的。这是因为加法运算相对于其他运算(比如乘法、除法和减法)来说,硬件实现起来更简 第 3 章 数据结构 hello‑algo.com 54 单,更容易进行并行化处理,运算速度更快。 请注意,这并不意味着计算机只能做加法。通过将加法与一些基本逻辑运算结合,计算机能够实现各种其他 的数学运算。例如,计算减法 ? − ? 可以转换为计算加法 且链表长度达到 8 时,链表会被转 换为红黑树以提升查找性能。 第 6 章 哈希表 hello‑algo.com 116 Python 采用开放寻址。字典 dict 使用伪随机数进行探测。 Golang 采用链式地址。Go 规定每个桶最多存储 8 个键值对,超出容量则连接一个溢出桶;当溢出桶过多时, 会执行一次特殊的等量扩容操作,以确保性能。 6.3 哈希算法 在上两节中,我们了解了哈希0 码力 | 361 页 | 30.64 MB | 1 年前3
Django 1.10.x Documentationelement of each tuple in fieldsets is the title of the fieldset. Here’s what our form looks like now: 54 Chapter 2. Getting started Django Documentation, Release 1.10.9.dev20171123183751 2.9.2 Adding related Inyoka. Markus made his first contribution to the Django project during DjangoCon Europe 2013 in Warsaw. He was the web team leader for the EuroPython 2014 website and started regular contributions to admin and quickly fell in love with the beauty of Python. She co-organized DjangoCon Europe 2013 in Warsaw and co-authored the Django Girls Tutorial, the most beginner friendly Django tutorial out there.0 码力 | 1817 页 | 6.19 MB | 1 年前3
Python 标准库参考指南 2.7.18 seek() to reposition the file to an absolute position will flush the read-ahead buffer. 2.3 新版功能. 54 Chapter 5. 内置类型 The Python Library Reference, 发布 2.7.18 file.read([size]) Read at most size bytes 2008-06-09 13:26:54 ./authorized_keys -rwxr-xr-x tarek/staff 65 2008-06-09 13:26:54 ./config -rwx------ tarek/staff 668 2008-06-09 13:26:54 ./id_dsa -rwxr-xr-x tarek/staff 609 2008-06-09 13:26:54 ./id_dsa.pub pub -rw------- tarek/staff 1675 2008-06-09 13:26:54 ./id_rsa -rw-r--r-- tarek/staff 397 2008-06-09 13:26:54 ./id_rsa.pub -rw-r--r-- tarek/staff 37192 2010-02-06 18:23:10 ./known_hosts 10.11 dircache0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 seek() to reposition the file to an absolute position will flush the read-ahead buffer. 2.3 新版功能. 54 Chapter 5. 内置类型 The Python Library Reference, 发布 2.7.18 file.read([size]) Read at most size bytes 2008-06-09 13:26:54 ./authorized_keys -rwxr-xr-x tarek/staff 65 2008-06-09 13:26:54 ./config -rwx------ tarek/staff 668 2008-06-09 13:26:54 ./id_dsa -rwxr-xr-x tarek/staff 609 2008-06-09 13:26:54 ./id_dsa.pub pub -rw------- tarek/staff 1675 2008-06-09 13:26:54 ./id_rsa -rw-r--r-- tarek/staff 397 2008-06-09 13:26:54 ./id_rsa.pub -rw-r--r-- tarek/staff 37192 2010-02-06 18:23:10 ./known_hosts 10.11 dircache0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 seek() to reposition the file to an absolute position will flush the read-ahead buffer. 2.3 新版功能. 54 Chapter 5. 内置类型 The Python Library Reference, 发布 2.7.18 file.read([size]) Read at most size bytes 2008-06-09 13:26:54 ./authorized_keys -rwxr-xr-x tarek/staff 65 2008-06-09 13:26:54 ./config -rwx------ tarek/staff 668 2008-06-09 13:26:54 ./id_dsa -rwxr-xr-x tarek/staff 609 2008-06-09 13:26:54 ./id_dsa.pub pub -rw------- tarek/staff 1675 2008-06-09 13:26:54 ./id_rsa -rw-r--r-- tarek/staff 397 2008-06-09 13:26:54 ./id_rsa.pub -rw-r--r-- tarek/staff 37192 2010-02-06 18:23:10 ./known_hosts 10.11 dircache0 码力 | 1552 页 | 7.42 MB | 9 月前3
共 375 条
- 1
- 2
- 3
- 4
- 5
- 6
- 38













