python中strip
导读: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
