What does this line of code mean?

Thomas 'PointedEars' Lahn PointedEars at web.de
Sun Nov 16 17:07:41 EST 2014


Abdul Abdul wrote:

> I just came across the following line of code:
> 
> outputfile = os.path.splitext(infile)[0] + ".jpg"
> 
> Can you kindly explain to me what those parts mean?

RTFM: 
<https://docs.python.org/3/search.html?q=splitext&check_keywords=yes&area=default>

An Python IDE like PyDev will also display the docstring of the method when 
you position the pointer cursor over the symbol.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.



More information about the Python-list mailing list