📜  将字符串排序为数字 python 代码示例

📅  最后修改于: 2022-03-11 14:47:10.996000             🧑  作者: Mango

代码示例2
>>> b = ["949.0","1099.0"]
>>> b.sort(key=float)
>>> b
['949.0', '1099.0']