yes:
import sys
import time
def restart_line():
sys.stdout.write('\r')
sys.stdout.flush()
sys.stdout.write('some data')
sys.stdout.flush()
time.sleep(2) # wait 2 seconds...
restart_line()
sys.stdout.write('other different data')
sys.stdout.flush()
More Related Contents:
- How to execute Python scripts in Windows?
- Python not working in the command line of git bash
- How can I hide the console window in a PyQt app running on Windows?
- Read Unicode characters from command-line arguments in Python 2.x on Windows
- How to add to and remove from system’s environment variable “PATH”?
- How do I copy a string to the clipboard?
- “python” not recognized as a command
- Windows cmd encoding change causes Python crash
- Getting MAC Address
- Which is the easiest way to simulate keyboard and mouse on Python?
- Is there a way to list all the available Windows’ drives?
- Python Window Activation
- Using Python, how can I access a shared folder on windows network?
- python ctypes issue on different OSes
- What version of Visual Studio is Python on my computer compiled with?
- Using subprocess to run Python script on Windows
- mixed slashes with os.path.join on windows
- Running powershell script within python script, how to make python print the powershell output while it is running
- python’s webbrowser launches IE, instead of default browser, on Windows relative path
- Python raw strings and trailing backslash [duplicate]
- Calling a python script from command line without typing “python” first
- Tensorflow r1.0 : could not a find a version that satisfies the requirement tensorflow
- IOError: [Errno 13] Permission denied when trying to open hidden file in “w” mode
- Why use argparse rather than optparse?
- How do I eliminate Windows consoles from spawned processes in Python (2.7)? [duplicate]
- How to get the text cursor position in Windows?
- How to change the location of the pointer in python?
- Running Scapy on Windows with Python 2.7
- Installing theano on Windows 8 with GPU enabled
- Fatal Python error on Windows 10 ModuleNotFoundError: No module named ‘encodings’