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 · 147 阅读 · 0 评论 -
Python 一行读入多个整数/字符串
http://www.cnblogs.com/skyhacker/archive/2012/02/03/2337572.html http://blog.csdn.net/demon24/article/details/8502565 I=lambda:map(int,raw_input().split())n,k=I()a=I()原创 2013-11-15 01:57:38 · 1032 阅读 · 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 · 149 阅读 · 0 评论