首页后端开发Pythonpython中strip

python中strip

时间2023-06-07 14:55:01发布访客分类Python浏览588
导读:python中strip?告知你一个捕鱼的方法:>>>importstring>>>help(string.strip Helponfunctionstripinmodulestring:strip(s,...

python中strip?

告知你一个捕鱼的方法:> > > importstring> > > help(string.strip)Helponfunctionstripinmodulestring:strip(s,chars=None)strip(s[,chars])-> stringReturnacopyofthestringswithleadingandtrailingwhitespaceremoved.IfcharsisgivenandnotNone,removecharactersincharsinstead.Ifcharsisunicode,Swillbeconvertedtounicodebeforestripping.用help()查询模块,方法等的用途。

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!


若转载请注明出处: python中strip
本文地址: https://pptw.com/jishu/65548.html
Python在2019年是快速入门编程的首选吗 matlab如何对输出的数组求和

游客 回复需填写必要信息