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

又又又又报错啦~ #18

@chenshiforever

Description

@chenshiforever
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也改掉了。大改

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions