×
Inicio Aleatorio

python interpreter

Sección: Programación

Creado: 22-12-24 (Actualizado: 07-10-18)

path

The Python interpreter is usually installed as /usr/local/bin/python3.6

exit interpreter

Typing an end-of-file character (Control-D on Unix, Control-Z on Windows) at the primary prompt causes the interpreter to exit with a zero exit status. If that doesn’t work, you can exit the interpreter by typing the following command: quit().

Continuation lines with :

By default, Python source files are treated as encoded in UTF-8

To declare an encoding, first line

# -*- coding: encoding -*-

or second

#!/usr/bin/env python3
# -*- coding: cp-1252 -*-
 

Siguiente Publicación