在Python中,我想将列表中的所有字符串转换为整数.
所以,如果我有:
results = ['1', '2', '3']
我该怎么做:
results = [1, 2, 3]
python int list
int ×1
list ×1
python ×1