[dropcap]I[/dropcap]t is possible to read and write CSV (comma separated values) files using Python 2.4 Distribution. Like most languages, file operations can be done with Python. Writing a CSV file with Python can be…
Catégorie : Python
(English) Using Feedparser in Python to read RSS
Désolé, cet article est seulement disponible en Anglais.
Exécution d’un serveur HTTP simple
Désolé, cet article est seulement disponible en Vietnamien et Anglais.
Mesurer le temps d’exécution d’une routine en Python
Désolé, cet article est seulement disponible en Vietnamien et Anglais.
Delete columns in numpy.array
a=array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11], [12, 13, 14, 15]]) delete(a, s_[1:3], axis=0) # remove rows 1 and 2 output: array([[…
Select column from a matrix
from operator import itemgetter nested_list = [[1, 2, 3], [10, 20, 30], [100, 200, 300]] map(itemgetter(1), nested_list) Result: [2, 20, 200] Found it here: http://www.gossamer-threads.com/lists/python/python/770606