📜  python 将数据类型更改为整数 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:57.196000             🧑  作者: Mango

代码示例3
equationStrToInt = '8 * 8'
eval(equationStrToInt)
type(equationStrToInt)
print(equationStrToInt)
strToList = 'GREPPER'
list(strToList)
type(strToList)
print(strToList)