Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db里面get方法用json.loads更好么? #7

Closed
XyLearningProgramming opened this issue Apr 13, 2019 · 0 comments
Closed

db里面get方法用json.loads更好么? #7

XyLearningProgramming opened this issue Apr 13, 2019 · 0 comments

Comments

@XyLearningProgramming
Copy link

db里有个get方法取出cookies。可以对照着set方法使用json.loads。结果和decode方法有时候略有不同。
def get(self, key): try: return json.loads(self._db.get(self._key(key))) except: return None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant