Oct-31-2019, 03:32 AM
(This post was last modified: Oct-31-2019, 03:32 AM by newbieAuggie2019.)
(Oct-31-2019, 02:19 AM)hadoan Wrote: Hi Everyone.
I want to make color for text, string when print into the console window but could not.
I have searched on google but not lucky.
How to do that ?
My Python ver 3.7.4
Thanks in advance!
Hi!
It depends on which console you are using. You cannot do it with the Python 3.7.4 Shell. You could use for instance Cmder instead.
You also need to install and then import a module dedicated to use and format colour in python, and then make a program or use formatting according to the module you have installed.
More information here, where I compare different such modules and show some little programs on how to use their characteristics:
https://python-forum.io/Thread-colouring-strings
All the best,
newbieAuggie2019
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs