Django Book 翻译
菜单>:
TOC
返回
原文:
* Hooking into the CSV-generation API is easy: just pass ``response`` as the first argument to ``csv.writer`` . The ``csv.writer`` function expects a filelike object, and ``HttpResponse`` objects fit the bill.
翻译:
* 与创建CSV的应用程序界面(API)挂接是很容易的:只需将 ``response`` 作为第一个变量传递给 ``csv.writer`` 。 ``csv.writer`` 函数希望获得一个文件类的对象, ``HttpResponse`` 正好能达成这个目的。
备注:
译者: