On Sunday, November 16, 2014 3:45:58 PM UTC-6, 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?
What that line of code means is:
The author is far too dependent on
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?
Thanks.
--
https://mail.python.org/mailman/listinfo/python-list
On 2014-11-16 22:45, 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?
Have you tried them?
https://docs.python.org/2/library/os.path.html#os.path.splitext
This takes a
On Sun, Nov 16, 2014 at 2:45 PM, Abdul Abdul abdul.s...@gmail.com 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?
import os.path
help(os.path.splitext)
Help on function splitext in
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?
You can try it yourself in the interactive interpreter:
import os.path
help(os.path.splitext)
Help on function splitext
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=splitextcheck_keywords=yesarea=default
An Python IDE like PyDev will also