python regex replace ... s = ' coop regex python easy to learn,come on ' s.strip() re_blank = re.compile(r'\s+') # 匹配任意空吧字符,相當 ...
確定! 回上一頁