wisdomtree
wisdomtree copied to clipboard
又又又又报错啦~
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也改掉了。大改