y poder mezclar operaciones aritméticas con el texto.
Programación en Python
- Parte I - referencia. Una referencia del lenguaje con recomendaciones y direcciones. Algo obsoleta, versión 2.1 de 2002. En formato pdf y en un solo html.
- Parte II - ejemplos, Ejemplos sencillos pero que pueden ser útiles. Para novatos. En formato pdf y un solo html.
Tutorial
import atexit import os import readline import rlcompleter import sys readline.parse_and_bind('tab: complete') historyPath = os.path.expanduser("~/.pyhistory") def save_history(historyPath=historyPath): import readline readline.write_history_file(historyPath) if os.path.exists(historyPath): readline.read_history_file(historyPath) sys.ps1 = '033[00;33m>>>033[00m ' atexit.register(save_history) del os, atexit, readline, rlcompleter, save_history, historyPath
Para que el archivo anterior sea tomando en cuenta, es necesario agregar al final de ~/.bashrc un renglón con:
export PYTHONSTARTUP=~/.pystartup
Página actualizada: 02 de January de 2011 Derechos Reservados (c) Patricio Páez Serrato 2002, 2003, 2004, 2006, 2008