Python 3: How to create a text progress bar for downloading files?
问题 I have currently this: def download_dropbox(url, pre_file_name): file = url[42:] file = file[:-5] file_name = pre_file_name + file print('Downloading from ' + url + ' to ' + file_name) print(file) u = urllib.request.urlopen(url) data = u.read() u.close() with open(file_name, "wb") as f: f.write(data) print('Download Completed from ' + url + ' and saved to ' + file_name) This basically downloads files from dropbox and saves it to a directory. However I want to be able to have some sort of text