Le type unicode de Python 2 a été renommé str dans Python 3, str() a été renommé bytes et basestring a disparu.
Python 2's unicode type was renamed str in Python 3, str() was renamed bytes, and basestring disappeared.
Leurs noms contenait le mot str, qui n'a pas la même signification dans Python 2 et dans Python 3, et unicode, qui n'existe plus dans Python 3.
Their names used the words str, which doesn't mean the same thing in Python 2 and Python 3, and unicode, which doesn't exist in Python 3.
Le préfixe u de Python 2 est une erreur de syntaxe dans Python 3.2, mais il est de nouveau autorisé dans Python 3 suite à la PEP 414.
Python 2's u prefix is a syntax error in Python 3.2 but it will be allowed again in Python 3.3 thanks to PEP 414.
Le type unicode de Python 2 a été renommé str dans Python 3, str() a été renommé bytes et basestring a disparu.
Thus, this transformation is optional if you Python 3, str() was renamed bytes, and basestring disappeared.
Dans Python 3, "print" est devenue une fonction, vous devez donc taper "print()" et inscrire entre les parenthèses ce que vous voulez afficher. 3 Ajoutez une commande à votre programme.
In Python 3, "print" has become a function, so you will need to type "print()", with what you want displayed inside the Add your statement.
Outros resultados
L'installateur Anaconda a été entièrement porté à Python 3 dans Fedora 23.
The Anaconda installer has been completely ported to Python 3 in Fedora 23.
Convertir tous les fichier Python2 vers Python 3 dans un dossier
Convert all Python 2 files in a directory to Python 3
Donc le fonctionnement de ces paquets avec Python 3 dans F13 a été testé ?
So these packages in F13 have been tested to work with Python 3?
Regardez le discours de Roy Williams dans lequel il explique pourquoi Lyft utilise Python 3 dans sa stack technique
Watch Roy Williams' talk on how and why Lyft uses Python 3 in their tech stack.
Une approche naïve pour continuer de faire fonctionner les deux versions serait d'essayer d'utiliser d'abord les bibliothèques de Python 3 dans une déclaration Cependant, il existe une meilleure approche pour échapper au laborieux système du try/catch.
Consider Compatibility Layers A naive approach for keeping both versions working would be to try to use first libraries from Python 3 in a try/catch statement.
Conteúdo potencialmente sensível ou impróprio
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.