How to use \r to print on same line? [duplicate]
问题 This question already has answers here : Remove and Replace Printed items [duplicate] (3 answers) Closed 6 years ago . I have made a downloader: #!/usr/bin/env python #-*- coding:utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import os import argparse try: from urllib2 import urlopen except ImportError: from urllib.request import urlopen # {{ Argument parser parser = argparse.ArgumentParser( prog='downloader', description='a featureful downloader'