mirror of
git://git.acid.vegas/random.git
synced 2024-11-14 12:06:38 +00:00
19 lines
716 B
Python
19 lines
716 B
Python
#!/usr/bin/env python
|
|
# table plotter - developed by acidvegas in python (https://acid.vegas/random)
|
|
# tableplot.py
|
|
|
|
data = {
|
|
'number' : ('1','2','3','4','5'),
|
|
'name' : ('mark', 'steven', 'fredrick', 'bronzel', 'billy'),
|
|
'race' : ('simpson', 'WHITE BOI', 'peckerwood', 'bird', 'fartman')
|
|
}
|
|
|
|
def table(data):
|
|
columns = len(data)
|
|
for item in data:
|
|
max(data[item], key=len)
|
|
print('┌' + '─'*amount + '┐')
|
|
print('│ ' + title + ' '*amounnt + ' │ ')
|
|
print('├───────────┼────────────────┼───────┤')
|
|
|
|
print('└───────────┴────────────────┴───────┘') |