예제 #1
0
def main():
    print(plain(doc(inventory_summary)))
    print('InventorySummary fields:',
          *InventorySummary._fields,
          sep='\n\t',
          end='\n\n')
    print_table(inventory_summary())
예제 #2
0
def main():
    rows = ''
    for summary in inventory_summary():
        rows += _row_template % summary
    print(_table_template % ''.join(rows))
def main():
    print(plain(doc(inventory_summary)))
    print('InventorySummary fields:', *InventorySummary._fields, sep='\n\t', end='\n\n')
    print_table(inventory_summary())
def main():
    rows = ''
    for summary in inventory_summary():
        rows += _row_template % summary
    print(_table_template % ''.join(rows))