On Fri, 8 May 2020 16:25:52 +0200, ast <ast@invalid> wrote: >Hello > > >Suppose we want that: > >print("abcdef"); print("ghi") > >produces: > >ghidef > >The 2nd print overwrites the first one. >Is it feasible ? > >It should since the progress bar tdqh seems to do that > >try: > >from tkdm import tkdm > >for i in tqdm(range(100_000_000)): > pass > >It produces a progress bar like this: >100%|???????????????????????????????????????????????????????????????| >100000000/100000000 [00:56<00:00, 1781611.52it/s]
print('abcdef', end='\r'); print('ghi', end='') -- https://mail.python.org/mailman/listinfo/python-list