发布于 1年前

Python 将列表中的字符串转换为整数

print(list(map(int, ['1', '2', '3'])))
# [1, 2, 3]
©2020 edoou.com   京ICP备16001874号-3