make_list_of_ints#

make_list_of_ints(sequence)[source]#

从整数序列返回整数列表。

序列的所有元素必须满足 int(element) == element,否则会引发 ValueError。序列只遍历一次。

如果序列是一个列表,非整数值会被替换为整数。因此,不会创建新列表。