Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

又又又又报错啦~ #18

Open
chenshiforever opened this issue Nov 18, 2018 · 0 comments
Open

又又又又报错啦~ #18

chenshiforever opened this issue Nov 18, 2018 · 0 comments
Assignees

Comments

@chenshiforever
Copy link

chenshiforever commented Nov 18, 2018

Traceback (most recent call last):
  File "study3.py", line 167, in <module>
    p = {**j, 'secretStr': utils.rsa_encrypt(yzm_key, to_json(j)), 'versionKey':
 '2'}
  File "study3.py", line 39, in to_json
    return json.dumps(j, sort_keys=True, separators=(',', ':'))
  File "C:\Users\chenshi\AppData\Local\Programs\Python\Python36\lib\json\__init_
_.py", line 238, in dumps
    **kw).encode(obj)
  File "C:\Users\chenshi\AppData\Local\Programs\Python\Python36\lib\json\encoder
.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "C:\Users\chenshi\AppData\Local\Programs\Python\Python36\lib\json\encoder
.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "C:\Users\chenshi\AppData\Local\Programs\Python\Python36\lib\json\encoder
.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'module' is not JSON serializable

然后做题的这一堆接口应该是改了很多。。rsa的key也改掉了。大改

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

No branches or pull requests

2 participants