>>> [[float(f) for f in a.split()] for a in L][[0.0, -1.0, 1.5], [1.0, 2.0, -3.5]]
这样吗?
L=[[float(i) if i.find('.')>-1 else int(i) for i in x.split()] for x in L]