Remove special characters from a string in python

前端 未结 0 1329
面向向阳花
面向向阳花 2020-11-27 13:02
def paragraph(para,special1):    
    for i in special1:
        word1=para.replace(i,"")    
    return word1

p="Lorem ipsum dolor sit amet, consect         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题