图片解析应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
393 B

  1. class Path:
  2. """This class represents a path in a JSON value."""
  3. strPath = ""
  4. @staticmethod
  5. def root_path():
  6. """Return the root path's string representation."""
  7. return "."
  8. def __init__(self, path):
  9. """Make a new path based on the string representation in `path`."""
  10. self.strPath = path
  11. def __repr__(self):
  12. return self.strPath