字符串->数字:
float(str)
int(str)
查看某一个变量的类型:
type(var)
python问题:
使用fromkeys(ind,int(ele))报错TypeError: ‘int‘ object is not iterable
使用sp[ind] = int(ele)就可以了,奇怪的问题
Python 常用函数
原文:http://www.cnblogs.com/lebronzhang/p/6161060.html