How to place several "import ...." lines in one .py file?

Ian Kelly ian.g.kelly at gmail.com
Thu Jul 24 22:45:38 CEST 2014


On Thu, Jul 24, 2014 at 2:25 PM, fl <rxjwg98 at gmail.com> wrote:
> Hi,
>
> I have seen several kinds of module import examples, but most of the programs are
> small and less content. They only have one or two module import.
>
> I'll use the following modules in a small project. I would like to know whether
> it is appropriate to put all of them at the file header, like this:

http://legacy.python.org/dev/peps/pep-0008/#imports



More information about the Python-list mailing list