python正则表达式详解 pandas_Python/Pandas(十四)-字符串与正则-阿里云开发者社区...
split拆分常和strip使用val='a,b,guido'val.split(',')['a','b','guido']pieces=[x.strip()forxinval.split(',')]pieces['a','b','guido']'::'.join(pieces)'a::b::guido'first,second,third=piecesfirst+'::'+'::'+second