I need to print over one line in a loop (Python 3.x). Looking around on SO already, I put this line in my code:
print('{0} imported
'.format(tot),)
However, it still prints multiple lines when looped through. I have also tried
sys.stdout.write('{0} imported
'.format(tot))
but this doesn't print anything to the console...
Anyone know what's going on with this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…