芷兮离离

关注

str转dict

芷兮离离

关注

阅读 57

2022-01-26

global false, null, true
false = null = true = ''#解决eval() 不能处理false问题

a = "{"1":"dd"}"
if not a:#如果a为空,不能用eval
    return
b=eval(a)

相关推荐

女侠展昭

Python3 dict和str互转

女侠展昭 39 0 0

爱我中华8898

es mapping转dict

爱我中华8898 78 0 0

是归人不是过客

python str转xml

是归人不是过客 52 0 0

ITWYY

iOS Json转字典Dict

ITWYY 39 0 0

静守幸福

python time转str类型

静守幸福 61 0 0

女侠展昭

Python报错:TypeError: the JSON object must be str, bytes or bytearray, not ‘dict‘

女侠展昭 183 0 0

爱读书的歌者

python3 str 转int

爱读书的歌者 25 0 0

写心之所想

df list 转 str object astype

写心之所想 14 0 0

上善若水的道

Python中常见的数据类型:List、dict、str、tuple等

上善若水的道 272 0 0

Star英

jsonify(data) 防止typeError 返回data本身类型 # dict jsonify与否 均为dict 但是 # data: str(int) 返回int jsonify(data)

Star英 34 0 0

精彩评论(0)

0 0 举报