from django.http import FileResponse >>> response = FileResponse(open('myfile.png', 'rb')). 文件将自动关闭,因此不要使用上下文管理器 ...
確定! 回上一頁