如何使用python检查嵌套列表中每个项目的单独条件?

时间:2019-05-28 14:06:07

标签: python python-3.x

如何使用python3检查嵌套列表中的条件?

list_1=[["22/01/201922222222","22/09/2019"],["abcd1234","poiu0987"],["1","2"],["3.0","4.0"],["5.0--------","6.4"],["3.0","4.0"],["3.0","4.0"]]
list_2=[["22/01/201909","22/09/2019"],["abcd1234","poiu-------0987"],["1","2"],["ab","cd"],["5.0","6.4"]]


Output:
list_1=[["22/01/2019","22/09/2019"],["abcd1234","poiu0987"],["1","2"],["3.0","4.0"],["5.0","6.4"],["3.0","4.0"],["3.0","4.0"]]
list_2=[["22/01/2019","22/09/2019"],["abcd1234","poiu0987"],["1","2"],["ab","cd"],["5.0","6.4"]]

0 个答案:

没有答案