代码:
List2str:
1 def List2Str(list): 2 value=[str(i) for i in list] 3 Value_str=''.join(value) 4 return Value_str
快速查找字符串:
1 import re 2 text = "/User/lijian/Desktop/workspace/project/V501/name/" 3 searchContext = "/" 4 numList = [m.start() for m in re.finditer(searchContext, text)] 5 print numList