Created
July 24, 2018 00:01
-
-
Save phi-line/865a62b53c28aba2ada490b68d8932ef to your computer and use it in GitHub Desktop.
Revisions
-
phi-line created this gist
Jul 24, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ def print_c(message): """ Clears last carriage returned line and writes a new one :param message: (str) :return: None """ sys.stdout.write('\x1b[2K') sys.stdout.write(message) sys.stdout.flush() print_c(f"Hello!\r")