示例#1
0
 def __init__(self, path, **kwargs):
     touch(path)  # Create file if not exists
     self.kwargs = dict(kwargs, **{'ensure_ascii': False})
     self._handle = open(path, 'r+', encoding='utf-8')
示例#2
0
 def __init__(self, path, **kwargs):
     touch(path)  # Create file if not exists
     self.kwargs = dict(kwargs, **{'ensure_ascii': False})
     self._handle = open(path, 'r+', encoding='utf-8')