Is it possible to redefine the space width of a tab when printing a \t character in python?
Python's print feature does not convert tabs to spaces - it outputs a literal tab. The way it appears depends on what program you use to view it.
Try pydoc string.expandtabs, I think it will do what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With