元组类型数据转换为列表

a = (('5699461012b1cdb956f3bdf5df8cc472',), ('fcc2a2eec59209b14c1eb5a7435800dc',),
     ('6b43c9fe2dc3bd73bd051055a9e6dda0',), ('584d084095794d7c8ff3091305f67b6e',),
     ('4715e67cfbe736c85fa74f140f9e7a89',), ('8d0a6f074ad4578445e3f22303af67ef',))
b = []
for i in range(len(a)):
     p = lambda x: x[i][0]
     b.append(p(a))
print(b)

在这里插入图片描述

你可能感兴趣的:(python,css,前端,python)