相关疑难解决方法(0)

如何在python中将字符串列表转换为整数

在我的python脚本中,我有:

user = nuke.getInput("Frames Turned On")
userLst = [user]
print userLst
Run Code Online (Sandbox Code Playgroud)

结果:

['12,33,223']
Run Code Online (Sandbox Code Playgroud)

我想知道如何删除'列表中的,或以某种方式将其转换为int?

python string int list

10
推荐指数
2
解决办法
5万
查看次数

标签 统计

int ×1

list ×1

python ×1

string ×1