python 字符数字相互转化

来源:互联网 发布:网络远程教育怎么报名 编辑:程序博客网 时间:2024/05/16 09:09
数字变为字符串 str(4)
字符串变为数字 string.atoi(s,[,base]) //base为进制基数
浮点数转换 string.atof(s)


字符转数字 int(str)
0 0
原创粉丝点击