[float(i) for i in lst]. to be precise, it creates a new list with float values. Unlike the map approach it will work in py3k.
確定! 回上一頁