View: reemplazar, cortar, y convertir de lista a cadena en una sola linea

  1. 9 years ago by macks
    1. #form.cleaned_data['videoPath'] = C:Apacheuploadsvideosvideo_test.flv
    2.  
    3. path = form.cleaned_data['videoPath'].replace("\","/")
    4.             vName = ''.join(path.split("/")[-1:])
    5.  
    6. #result = 'video_test.flv'
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2045"></script>

0 comment about "reemplazar, cortar, y convertir de lista a cadena en una sola linea"