我在笔记本中使用 tqdm (from tqdm.auto import tqdm),输出很好且正确,但是当在终端中运行脚本时使用同一行时,我会阻塞多行输出。tqdm 有什么方法可以区分笔记本输出和终端输出吗?
python terminal jupyter-notebook tqdm
jupyter-notebook ×1
python ×1
terminal ×1
tqdm ×1