Compare commits
2 Commits
d540e77118
...
3ac425a715
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ac425a715 | ||
|
|
ccfcd4cb9f |
@@ -146,7 +146,7 @@ Try it out:
|
||||
>>> from tableformat import create_formatter
|
||||
>>> formatter = create_formatter('text')
|
||||
>>> with redirect_stdout(open('out.txt', 'w')) as file:
|
||||
tableformat.print_table(portfolio, ['name','shares','price', formatter)
|
||||
tableformat.print_table(portfolio, ['name','shares','price'], formatter)
|
||||
file.close()
|
||||
|
||||
>>> # Inspect the file
|
||||
|
||||
Reference in New Issue
Block a user