# 把 x 中的变量类型由字符串变为 int
x = [ '1', '2', '3' ]
x = list(map(int, x))
转载:https://blog.youkuaiyun.com/tutu96177/article/details/87783937
# 把 x 中的变量类型由字符串变为 int
x = [ '1', '2', '3' ]
x = list(map(int, x))
转载:https://blog.youkuaiyun.com/tutu96177/article/details/87783937