Python核心编程 第3版 英文版 - 无名图书

Python核心编程 第3版 英文版

出版时间

2016-02-29

ISBN

9787115413529

评分

★★★★★

标签

计算机

精彩摘录
  • "有一个更好的方案,许多Unix系统有一个命令叫env,位于/bin或/usr/bin中。它会帮你在系统搜索路径中找到python解释器。如果你的系统拥有env,你的启动行就可以改为下面这样。"
  • "print语句也支持将输出重定向到文件。这个特性是从Python2.0开始新增的。符号>>用来重定向输出"
  • "URL使用这种格式: prot_sch://net_loc/path;params?query#frag prot_sch 网络协议或者下载规划 net_loc 服务器位置(或许也有用户信息) path 斜杠(/)限定文件或者CGI应用程序的路径 params 可选参数 query 连接符(&)连接键值对 frag 拆分文档的特殊锚 net_loc 可以进一步拆分成多个部件, 有些是必备, 其他的是可选部件, net_loc 字符串如下: user:passwd@host:port"
  • "在我们研究CGI之前, 我们必须告诉你典型的Web应用已经不再使用CGI了。"
  • "Why must keys be hashable? The hash function used by the interpreter to calculate where to store your data is based on the value of your key. If the key was a mutable object, its value could be changed. If a key changes, the hash function will map to a different place to store the data. If that was "
  • "The defining PEP (234) cites that iterators: ● Provide an extensible iterator interface. ● Bring performance enhancements to list iteration. ● Allow for big performance improvements in dictionary iteration. ● Allow for the creation of a true iteration interface as opposed to overriding methods origi"
  • "FTP 是客户端/服务器编程中很“与众不同”的例子。客户端和服务器都使用两个套接字来通讯:一个是控制和命令端口(21 号端口),另一个是数据端口(有时是20 号端口)。"
  • "注意:字典中的键必须是可哈希的,所以数字和字符可以作为字典中的键,但是列表和其他字典不行"
用户评论
这本似乎并不是常见的python核心开发. 收获一般.
和第二版相比,去掉了第一部分python基础内容,直接从正则表达式开始讲python应用的部分,对应并扩充了第二版第二部分的内容
收藏