one difference of python3 from python
来源:互联网 发布:天仕博软件 编辑:程序博客网 时间:2024/05/16 01:16
Python 2.7.3
>>> s = 'abcdef'
>>> for i in [None] + range(-1, -len(s), -1):... print s[:i]
...
abcdef
abcde
abcd
abc
ab
a
Python 3.3.0
>>> s = 'abcdef'
>>> for i in [None] + range(-1, -len(s), -1):
... print(s[:i])
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can only concatenate list (not "range") to list
0 0
- one difference of python3 from python
- one difference of python3 from python
- one mail for difference between LOCAL_LDLIBS and LOCAL_SHARED_LIBRARIES of Android
- python difference of pass and continue
- Processing学习笔记--Difference of Processing from traditional programming languages
- off-by-one behavior of Python
- Thousands of TV and Radio Channels from One Small Box
- get the nsum of 'Fibonacci'from one to twenty
- What degree of difference will I make in only one month ?
- what is the difference of select single and select up to one row in abap
- Is it possible to get the difference from two dynamic arrays regardless of their order?
- Python数值分析 PyCharm with python2 which shifted from python3
- Win+python3+python-docx:from exceptions import PendingDeprecationWarning
- A bit of socket code from python
- Difference of Gaussian (DoG)
- HDU5486-Difference of Clustering
- 简明Python3教程(A Byte of Python 3)
- 简明Python3教程(A Byte of Python 3)
- Hibernate 关系映射 总结整理
- Python中调用父类的同名方法
- 在不知道第一响应者的情况下取消键盘方法
- Python类的专用方法:__init__ | __del__等
- HDOJ 3783 ZOJ
- one difference of python3 from python
- CoreLocation的使用 定位 既地理编码与反地理编码
- nyoj1086是否被整除(数学小技巧)
- Python多线程学习
- 动态数组
- HDU 2795 线段树
- javayi
- python装饰器
- 第15周项目2阅读程序(2)