提示信息如下
C:\Users\Admin\AppData\Roaming\Python\Python37\site-packages\ipykernel_launcher.py:10: TqdmExperimentalWarning: Using tqdm.autonotebook.tqdm
in notebook mode. Use tqdm.tqdm
instead to force console mode (e.g. in jupyter console)
Remove the CWD from sys.path while we load stuff.
解决方法:
原来的代码(无法显示tqdm进度条)
from tqdm.autonotebook import tqdm
修改后的代码(可以显示tqdm进度条)
from tqdm import tqdm
这样可以在jupyter notebook中使用tqdm.tqdm来显示进度条。