🌈 搜索
📅  最后修改于: 2022-03-11 14:45:30.996000             🧑  作者: Mango
x = str((1, 20, 2.0)) y = tuple(float(s) for s in x.strip("()").split(",")) print(y) (1.0, 20.0, 2.0)