V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  jediseed  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2020-02-28 09:57:29 +08:00
回复了 ower 创建的主题 宽带症候群 中国电信免费提速, 200M 以下免费提速到 200M
@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
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3570 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 00:48 · PVG 08:48 · LAX 17:48 · JFK 20:48
Developed with CodeLauncher
♥ Do have faith in what you're doing.