会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
整合侠
博客园
首页
新随笔
联系
订阅
管理
2018年6月12日
Python3:数字类型和字符串类型的相互转换
摘要: Python3:数字类型和字符串类型的相互转换 一、python中字符串转换成数字 方法1: 类中进行导入:import string str='555'num=string.atoi(str)num即为str转换成的数字转换为浮点数:string.atof(str) 方法2: 直接intint(s
阅读全文
posted @ 2018-06-12 17:53 整合侠
阅读(4384)
评论(0)
推荐(0)
编辑
公告