我有一個帶有浮點值的列表。我想從列表中刪除括號。如何打印不帶括號的列表
Floatlist = [14.715258933890,10.215953824,14.8171645397,10.2458542714719]
print (", ".join(Floatlist))
but i am getting an following error :
TypeError: sequence item 0: expected string, float found
,但我想打印像列表:
output:14.715258933890,10.215953824,14.8171645397,10.2458542714719
'「,」.join(map(str,Floatlist))' – karthikr
print str(Flo atList)[1:-1]? – Julien