logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

python ——使用正则化去除标点符号

python ——使用正则化去除标点符号在进行文本预处理时,可以使用正则化去掉文本中的标点符号。re.sub(pattern, repl, string, count=0, flags=0)去除掉一般符号代码如下:r = "[A-Za-z0-9_.!+-=——,$%^,。?、~@#¥%……&*《》<>「」{}【】()/]"sentence = re.sub(r, ' ', se

#python#正则表达式
git 错误 Reinitialized existing Git repository

git 错误 Reinitialized existing Git repository方法一:删除git,重新初始化,连接远程方法二:远程重新拉取

到底了