当前位置:网站首页>eval()函数
eval()函数
2022-04-21 07:46:00 【lifewange】
1、将字符串转换为数组
orders=str([{"id":"625e00","user_id":"6131a"},{"id":"625e0","user_id":"6131a9"}])
print(type(orders))
list_orders=eval(orders)
print(type(list_orders))
print(list_orders[1])
版权声明
本文为[lifewange]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wange6906/article/details/124269407
边栏推荐
- 【大话云原生】负载均衡篇-小饭馆客流量变大了
- IDEA中dbug调试图标解释
- 不确定是 BUG 还是设定
- Redis (15) -- master-slave replication of redis -- sentinel mode
- Express architecture in nodejs
- 牛客白月赛4 【题解】
- Xiaomi router 3G R3G brushes in the records of feed and openwrt 20.02.2
- Loading and unified exception handling
- 【面试普通人VS高手系列】b树和b+树的理解
- 基于知名微服务框架go-micro开发gRPC应用程序
猜你喜欢

第五章 函数

Use of antv X6 layout

Refer to ladder for router equipment selection

No .egg-info directory found in xxx\pip-pip-egg-info-mq

LVGL真的需要每个控件写代码?别天真了,知道了原理我们来拖控件吧~

mysql rank() over,dense_rank() over,row_number() over的区别

Installer mongodb

How did you spend your day in Shenzhen?

这是哪种插入数据库的编程语言

webrtc+srs(sfu)
随机推荐
SQL Server 数据库之SQL Server 数据库的安全设置
实现SPA实现单包授权技术的方案Fwknop
Brief introduction of 6 screenshots of win10
阿里云性能测试 PTS 3 月新功能
Set set
将excel数据向数据库里导入时失败怎么解决
Redis(15) -- Redis的主从复制--哨兵模式
数据探索性分析(EDA)常用方法大合集
网络安全空间导论密码学作业实现
【读书笔记->统计学】07-02 离散型概率分布-二项分布概念简介
【Pytorch】Tensor.contiguous()使用与理解
Redis (15) -- master-slave replication of redis -- sentinel mode
Express architecture in nodejs
redis在linux的安装
【get C】数据在内存是如何存储的
作文以记之 ~ 克隆图
Swift memory management
An error occurred when VMware prompted to restore the snapshot. The required file could not be found
MySQL编码问题
antv x6一些简单效果的实现总结