为何 strip 会多删掉1个字符
text = "cntaobaothree" a = text.strip("cntaobao") # 结果为:hree
收起
strip删除的是包含其中每一个的字符,不是整体,要整体,就用text.replace('cntaobao','')
报告相同问题?