1.strip()函数 :删除开头结尾处字符
3.atoi atof
atoi函数
原型:int atoi( const char *string );
ASCII to integer
作用:将字符串转为integer类型
atof函数
原型:double atof( const char *string );
ASCII to float
作用:将字符串转为double类型
2.with open as 函数: 读取文件
本文介绍了strip()函数用于去除字符串首尾的指定字符,with open as 方法实现文件的安全读取。重点讲解了atoi()和atof()函数,前者用于将字符串转换成整数,后者则用于将字符串转换为浮点数。
1269

被折叠的 条评论
为什么被折叠?



