samedi 27 juin 2015

Convert unicode to an int or str in python 2.7

So I am storing some data that I have scraped from a website. A piece of that data is a number, thats type is unicode and I want to convert it into an int or a str and then into an int so I can add them together. I am using python 2.7 and the unicode is u'11:33:52' How can I turn it into an int

Aucun commentaire:

Enregistrer un commentaire