摘要: eval函数就是实现list、dict、tuple与str之间的相互转化str函数把list,dict,tuple转为为字符串 # 字符串转换成列表a = "[[1,2], [3,4], [5,6], [7,8], [9,0]]"print(type(a))b = eval(a)print(b) # 阅读全文
posted @ 2019-10-29 17:56 FishMan552 阅读(964) 评论(0) 推荐(0)