Convert a String list to an Int list

前端 未结 3 1477
情歌与酒
情歌与酒 2020-12-16 12:06

I\'ve got a list of strings, is it possible to convert it to an list of ints?
E.g.:

[\"1\",\"2\"] -> [1,2]
3条回答
提交回复
热议问题