标签:
s = ‘abcde‘ for i in [None] + range(-1,-len(s),-1): print s[:i]
python技巧
原文地址:http://www.cnblogs.com/knnotow/p/4658726.html