dimanche 1 novembre 2015

Formatting SQLite Table for Output in Python

How can I print (to stdout or text file) a nicely formatted SQLite table in Python?

Do I have to write this functionality myself or is it already implemented?

I am looking for something like this:

Id   Name       Price     
---  ---------  ------
1    Audi       52642     
2    Mercedes   57127     

Aucun commentaire:

Enregistrer un commentaire