python字符串与数字的转化

数字变为字符串 str(4)
字符串变为数字 string.atoi(s,[,base]) //base为进制基数

浮点数转换 string.atof(s)

字符转数字 int(str)

你可能感兴趣的:(python)