@
dnd 大佬你好,我运行上面脚本后提示如下错误,该如何处理,谢谢。
D:\>python
qifei.py Traceback (most recent call last):
File "
qifei.py", line 26, in <module> req = b64encode(cipher.encrypt(data))
File "C:\Users\kd-mkt\AppData\Local\Programs\Python\Python38\lib\site-packages\Crypto\Cipher\
_mode_ecb.py", line 135, in en c_uint8_ptr(plaintext), File "C:\Users\kd-mkt\AppData\Local\Programs\Python\Python38\lib\site-packages\Crypto\Util\
_raw_api.py", line 238, in c_uint8_ptr
raise TypeError("Object type %s cannot be passed to C code" % type(data))
TypeError: Object type <class 'str'> cannot be passed to C code