python3 django 下载文件

def download_file(self, request, *args, **kwargs): path = r'C:\Users\Administrator\Desktop\test.txt' file = open(path, 'rb') response = FileResponse(file) res
相关文章
相关标签/搜索