a = [431.0, 1157.5, 511.0, 445.5, 431.0, 1158.0, 511.0, 446.0]
b = str(a)
c = []
for i in b.split(','):
c.append(float(i.strip().strip('[]'))) #删除前后的空格和‘[]’
print(b)
print(list(b))
print(c)
a = [431.0, 1157.5, 511.0, 445.5, 431.0, 1158.0, 511.0, 446.0]
b = str(a)
c = []
for i in b.split(','):
c.append(float(i.strip().strip('[]'))) #删除前后的空格和‘[]’
print(b)
print(list(b))
print(c)