2024-06-16 14:30:09 发布
网友
如何解决导入错误
示例代码:
from django.utils._os import upath dirs = [upath(os.path.abspath(os.path.realpath(d))) for d in dirs]
根据:https://docs.djangoproject.com/en/3.2/releases/3.0/
django.utils._os.upath() and npath() - These functions do nothing on Python 3.
所以,看起来我们可以去掉这个用法
dirs = [os.path.abspath(os.path.realpath(d)) for d in dirs]
根据:https://docs.djangoproject.com/en/3.2/releases/3.0/
所以,看起来我们可以去掉这个用法
相关问题 更多 >
编程相关推荐