Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Revisions

3 of 3
Commonmark migration

Its officially recommended to import at the beginning, see PEP8:

Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants.

Imports should be grouped in the following order:

  • standard library imports
  • related third party imports
  • local application/library specific imports
  • You should put a blank line between each group of imports.

Put any relevant __all__ specification after the imports.

sphere
  • 1.3k
  • 14
  • 25

AltStyle によって変換されたページ (->オリジナル) /