摘要:
python操作数据库时报错了,报错内容为“No operator matches the given name and argument type(s),You might need to add explicit type casts”,原因在于字段格式不正确。 举例: import psyco 阅读全文
摘要:
str转换为dict时报错:"Expecting property name enclosed in double quotes",直接原因在于双引号"" str转dict常用方法是json.loads(str),但遇到双引号会报错转换失败。本文介绍另一种方法:ast.literal_eval(st 阅读全文