Librería para imprimir tablas
Project description
Para imprimir tu tabla simplemente tienes que crear tu tabla y mandar a llamar a la función, puedes colocar un título a la tabla el cual si lo colocas se imprimirá primero el título y después la tabla, la tabla se imprime con el estilo de salida de MySQL.
Ejemplo de uso:
from ERlib import printTable
TituloDeLaTabla = "Los equipos con más Champions League"
Tabla = [ ["Posición", "Equipo", "Títulos"], ["1°", "Real Madrid Club de Fútbol", 14], ["2°", "Associazione Calcio Milán", 7], ["3°", "Bayern de Múnich", 6], ["4°", "Liverpool Fútbol Club", 6], ["5°", "Fútbol Club Barcelona", 5] ]
printTable(Tabla, TituloDeLaTabla)
Salida:
****** Los equipos con más Champions League ******* +----------+----------------------------+---------+ | Posición | Equipo | Títulos | +----------+----------------------------+---------+ | 1° | Real Madrid Club de Fútbol | 14 | +----------+----------------------------+---------+ | 2° | Associazione Calcio Milán | 7 | +----------+----------------------------+---------+ | 3° | Bayern de Múnich | 6 | +----------+----------------------------+---------+ | 4° | Liverpool Fútbol Club | 6 | +----------+----------------------------+---------+ | 5° | Fútbol Club Barcelona | 5 | +----------+----------------------------+---------+
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ERlib-1.tar.gz.
File metadata
- Download URL: ERlib-1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2737dab510791263422a993c25ea8000c445461aadb348957ea23d5da3c664b8
|
|
| MD5 |
42d51b94ba70099d80b1e524a2845255
|
|
| BLAKE2b-256 |
3641b797891b3e78e7d9ce06d3fbd79ada581a071145715234953fc59dffeb09
|
File details
Details for the file ERlib-1-py3-none-any.whl.
File metadata
- Download URL: ERlib-1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af64af70ea5ae72da16dac8326b92ccca0825d5c1e210737ba96724db0f4cdc7
|
|
| MD5 |
1a49cb0a843e5f4c2f6a595c5c31ccc1
|
|
| BLAKE2b-256 |
e6e0e1cf339c206c846ce827eb6f5f01a8472323469da1cb8ca9ab2f94313d3d
|