错误原因:
当 python 编译器混淆函数名和模块名并尝试将模块名作为函数运行时,会出现错误“TypeError: 'module' object is not callable”。
import tqdm
tqdm()
这种情况下会报错:
TypeError: 'module' object is not callable
修正方法:
import tqdm as tq
tq.tqdm()
错误原因:
当 python 编译器混淆函数名和模块名并尝试将模块名作为函数运行时,会出现错误“TypeError: 'module' object is not callable”。
import tqdm
tqdm()
这种情况下会报错:
TypeError: 'module' object is not callable
修正方法:
import tqdm as tq
tq.tqdm()