Domanda di colloquio di Savoir-faire Linux

What are the differences between how Python 2 and Python 3 handle textual data?

Risposta di colloquio

Anonimo

23 gen 2017

Not fantastically! I generally mentioned that Python 3 defaults to using unicode strings whereas you need to explicitly use the unicode type in Python 2