python - Python 2.7 的哪个微版本引入了集合理解?

标签 python python-2.7 version language-features set-comprehension

它可以在我的解释器(2.7.12)中运行。

来自http://sopython.com/wiki/In_which_Python_version_was_feature_X_introduced%3F我知道,它是在 2.7 中引入的。

不幸的是,在线文档仅适用于 2.7.13,因此我无法检查该功能是在哪个微版本中引入的。

最佳答案

documentation表明 Python 2.7 的所有版本都已设置推导式,因为它们是从 Python 3.1 向后移植的。

关于python - Python 2.7 的哪个微版本引入了集合理解?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42646850/

相关文章:

python - 使用 matplotlib-basemap 在边界处绘图

r - 3.3.6 更新 : cannot reproduce old plots 中 ggsave() 的重大更改

python - 如何引用pandas dataframe的索引字段?

python - 无法解析导入 [Module] (PylancereportMissingImports),模块位于同一文件夹/目录中

python - 这个 App Engine Ndb 语法是如何工作的?

python - fatal error C1083 : Cannot open include file: 'Carbon/Carbon.h' : No such file or directory

python - 如何在 Python 的 Windows 机器上将 CRLF 转换为 LF

python - 为什么在导入 datetime 类后不能使用此引用?

替换一个 dll 时的 .net dll 版本问题

node.js - 为什么node.js从0.12.x版本直接升级到4.0.0?