Python 怎么把字符串变成数字格式. 方法一:. 类中进行导入string. import stringstr='555'num=string.atoi(str). num即为str转换成的数字. 转换为浮点数:.
確定! 回上一頁