我有一个看起来像这样的列表:
['1', '2', '3.4', '5.6', '7.8']
如何将前两个更改为int最后两个float?
int
float
我希望我的列表看起来像这样:
[1, 2, 3.4, 5.6, 7.8]
python list
list ×1
python ×1