类似于list的str对象转为list对象
Posted ltn26
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了类似于list的str对象转为list对象相关的知识,希望对你有一定的参考价值。
strs = [(2, 2, ‘水象科技,骗子‘, 3), (2, 2, ‘水象科技,传销‘, 3), (2, 2, ‘水象科技,被调查‘, 3), (2, 2, ‘水象科技,被查‘, 3), (2, 2, ‘水象科技,被骗‘, 3), (2, 2, ‘水象科技,骗局‘, 3), (2, 2, ‘水象科技,虚假‘, 3), (2, 2, ‘水象科技,谎言‘, 3), (2, 2, ‘水象科技,裁员‘, 3), (2, 2, ‘水象科技,倒闭‘, 3), (2, 2, ‘水象科技,跑路‘, 3), (2, 2, ‘水象科技,造假‘, 3), (2, 2, ‘水象科技,害人‘, 3), (2, 2, ‘水象科技,假冒‘, 3), (2, 2, ‘水象科技,涉嫌‘, 3), (2, 2, ‘水象科技,潜逃‘, 3), (2, 2, ‘水象科技,获刑‘, 3), (2, 2, ‘水象科技,批捕‘, 3), (2, 2, ‘水象科技,抓捕‘, 3), (2, 2, ‘水象科技,逮捕‘, 3), (2, 2, ‘水象科技,沦落‘, 3), (2, 2, ‘水象科技,破产‘, 3), (2, 2, ‘水象科技,坑人‘, 3), (2, 2, ‘水象科技,骗人‘, 3), (2, 2, ‘水象科技,诈骗‘, 3), (2, 2, ‘水象科技,蒙人‘, 3), (2, 2, ‘水象科技,虚假宣传‘, 3), (2, 2, ‘水象科技,猫腻‘, 3), (4, 1, ‘香港必发集团网站‘, 3), (4, 1, ‘DZ81‘, 3), (4, 1, ‘SLD‘, 3), (4, 1, ‘EX/CL‘, 3), (4, 1, ‘ET-‘, 3), (4, 1, ‘LNRM‘, 3), (4, 1, ‘EX/‘, 3), (4, 1, ‘SZ1‘, 3), (4, 1, ‘GLXX‘, 3), (4, 1, ‘DSM‘, 3), (4, 1, ‘金沙游乐场提款‘, 3), (4, 1, ‘ASE‘, 3), (4, 1, ‘XM-‘, 3), (4, 1, ‘BQM‘, 3), (4, 1, ‘RL/‘, 3), (4, 1, ‘HLC‘, 3), (4, 1, ‘PT/S‘, 3), (4, 1, ‘DLE‘, 3), (4, 1, ‘MDH‘, 3), (4, 1, ‘K-BU‘, 3), (4, 1, ‘EPX‘, 3), (4, 1, ‘UP525‘, 3), (4, 1, ‘ECS‘, 3), (4, 1, ‘UP511‘, 3), (4, 1, ‘DR6‘, 3), (4, 1, ‘DR0‘, 3), (4, 1, ‘N512‘, 3), (4, 1, ‘TYA‘, 3), (4, 1, ‘GE5‘, 3), (4, 1, ‘N510‘, 3), (4, 1, ‘DH100‘, 3), (4, 2, ‘海普瑞,富阳到文登汽车时刻表‘, 3), (4, 1, ‘老虎官网‘, 3), (4, 1, ‘中华康网‘, 3), (4, 1, ‘赌足球‘, 3), (4, 1, ‘棋牌‘, 3), (4, 1, ‘江苏省电子商务企业信用信息公示服务网‘, 3), (4, 1, ‘捕鱼‘, 3), (4, 1, ‘威尼斯‘, 3), (4, 1, ‘NHR‘, 3), (4, 1, ‘YWD-I‘, 3), (4, 1, ‘新疆队与企业员工打友谊赛‘, 3), (4, 1, ‘058期‘, 3), (4, 1, ‘不锈钢项目‘, 3), (4, 1, ‘GD8‘, 3), (4, 1, ‘YWB-AC1‘, 3), (4, 1, ‘MIK‘, 3), (4, 1, ‘遵义回收钽块‘, 3), (4, 1, ‘崇左‘, 3), (4, 1, ‘互助系统开发‘, 3), (4, 1, ‘渔乐帝国‘, 3), (4, 1, ‘亚盘‘, 3), (4, 1, ‘BD-4P-‘, 3), (4, 1, ‘微信龙虎群‘, 3), (4, 1, ‘道聚城‘, 3), (4, 1, ‘JD194-BS4Q-‘, 3), (4, 1, ‘试玩金‘, 3), (4, 1, ‘数显仪‘, 3), (4, 1, ‘测控仪‘, 3), (4, 1, ‘DP3‘, 3), (4, 1, ‘中国科学院‘, 3), (4, 1, ‘三相电‘, 3), (4, 1, ‘电压表‘, 3), (4, 1, ‘数显表‘, 3), (4, 1, ‘电力仪表‘, 3), (4, 1, ‘功能仪表‘, 3), (4, 1, ‘电流表‘, 3), (4, 1, ‘电能表‘, 3), (4, 1, ‘赌博网‘, 3), (4, 2, ‘望京,一场大秀‘, 3), (4, 1, ‘迷魂药‘, 3), (4, 1, ‘海神乐‘, 3), (4, 1, ‘南京开发票‘, 3), (4, 1, ‘说真话的药‘, 3), (4, 1, ‘电玩城加盟‘, 3), (4, 1, ‘公安部官方‘, 3), (4, 1, ‘培训机构‘, 3), (4, 1, ‘昏迷‘, 3), (4, 1, ‘龙江到十堰市‘, 3), (4, 1, ‘南湖公园‘, 3), (4, 1, ‘度芽智能体温贴‘, 3), (4, 1, ‘新建小区‘, 3), (4, 1, ‘迷情水‘, 3), (4, 1, ‘睡莲‘, 3), (4, 1, ‘管理合伙人‘, 3), (4, 1, ‘中国科学院‘, 3), (4, 1, ‘幸运飞艇‘, 3), (1, 2, ‘水象科技,合作‘, 1), (1, 2, ‘水象科技,携手‘, 1), (1, 2, ‘水象科技,爱心公益‘, 1)] print(type(strs)) ## str print(type(eval(data))) ## list
类似于list的str对象转为list对象 (可用于redis取值等)
以上是关于类似于list的str对象转为list对象的主要内容,如果未能解决你的问题,请参考以下文章