Command Import Python

  Kiến thức lập trình

Let the package consist of the files _init_.py, json.py and yaml.py located in the serge/ directory. Which of the following imports will work?

  1. from . import serde.yaml
  2. import serde
  3. from serde import yaml
  4. import serde.json
  5. import json from serge

2

LEAVE A COMMENT