Comments (2)
你应该在python2.7.x的版本下编码到, map函数在python3.x下返回到是一个迭代器, 那么用list(map(...)), 适用于两个版本
from interpy-zh.
@xutaoding 说的有道理, 这个list确实是专门为了兼容python3
这里如果要改进下代码的话,感觉是不是应该把list放到print中去,因为在print时才需要转换成一个列表来显示。
from interpy-zh.
Related Issues (20)
- 介绍中加入极客学院的镜像
- # 就不能编译成pdf么 HOT 2
- 请将微信二维码图片地址改为HTTPS
- pdf版本显示不完整 HOT 1
- 使用github pages直接托管编译好的gitbook, 访问会快很多 HOT 4
- 已捐赠 HOT 1
- 17.0 lambda表达式 最后的例子-列表并行排序在python3中失效 HOT 1
- python学习手册第五版中文怎么没有 HOT 1
- SUMMARY.md文件中推荐阅读中Learn Python the Hard Way的链接已经失效 HOT 2
- 建议在oschina 的码云(gitee)上也托管 HOT 1
- 使用C扩展部分 Python/C API 有问题
- 排版错误 HOT 1
- 已计划:对单个章节的内部大纲进行导航展示,方便跳转
- 协程部分的内容逐渐要过时了,建议标注出来 HOT 1
- 会有方便阅读的pdf版本么? HOT 1
- 带参数的装饰器的最后一个示例email_logit写的有问题,运行报错 HOT 1
- 页面显示 404 https://py.eastlakeside.cn/book/Extras/targeting_python2+3.html HOT 2
- 文档地址进不去 HOT 4
- 💡 亲测有效!零基础也能轻松学会科学上网和ChatGPT HOT 1
- 使用gitbook重新整理文档, 效果类似于https://guide.plusdocs.com
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interpy-zh.