python
iteye_11396
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
TypeError: 'str' does not support the buffer interface
摘要: If you use Python3x then string is not the same type as for Python 2.x, you must cast it to bytes (encode it). In python 3, bytes strings and unicode strings are now two different types. When...2013-11-10 03:07:28 · 196 阅读 · 0 评论 -
Python 一行读入多个整数/字符串
http://www.cnblogs.com/skyhacker/archive/2012/02/03/2337572.html http://blog.youkuaiyun.com/demon24/article/details/8502565 I=lambda:map(int,raw_input().split())n,k=I()a=I()原创 2013-11-15 01:57:38 · 1068 阅读 · 0 评论 -
python3 的 map
python 2 的 map 返回 list python 3 的 map 返回 “(可迭代)map 类” Python 3.2.3 (default, Feb 20 2013, 17:02:41) [GCC 4.7.2] on linux2Type "help", "copyright", "credits" or "license" for more information....2013-11-25 05:55:12 · 188 阅读 · 0 评论
分享