源代码:
for k in cats:
if binascii.crc32(k) == n:
return k
运行错误:TypeError: a bytes-like object is required, not
str
错误
解决办法:找到python安装目录下的site-packages/django/db/backends/mysql
例如我的win下
C:\Python37\Lib\site-packages\django\db\backends\mysql(python安装目录)
第一步:打开base.py,先注释掉以