from prettytable import PrettyTable table = PrettyTable(['id', 'ip']) table.add_row(['1', '172.16.0.1']) print(table)
記得先pip install
https://linuxops.org/blog/python/prettytable.html
Last updated 4 years ago