python中strip?
告知你一個捕魚的方法:>>>importstring>>>help(string.strip)Helponfunctionstripinmodulestring:strip(s,chars=None)strip(s[,chars])->stringReturnacopyofthestringswithleadingandtrailingwhitespaceremoved.IfcharsisgivenandnotNone,removecharactersincharsinstead.Ifcharsisunicode,Swillbeconvertedtounicodebeforestripping.用help()查詢模塊,方法等的用途。