Newbie: String to Tuple

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Dec 22 15:59:21 EST 2015


On 22/12/2015 20:53, KP wrote:
> How do I convert
>> '1280,1024'
>> to
>> (1280,1024) ?
>> Thanks for all help!
>
Start with this https://docs.python.org/3/library/stdtypes.html#str.split
-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /