标点符号
punctuation-remove的Python项目详细描述
标点符号
这是一个python库,它将删除python字符串中的所有标点符号
示例代码
from punctuation import Punctuation
my_str = '''"I can come today," she said, "but not tomorrow."'''
result = Punctuation.remove(my_str)
print(result)
标点符号
这是一个python库,它将删除python字符串中的所有标点符号
from punctuation import Punctuation
my_str = '''"I can come today," she said, "but not tomorrow."'''
result = Punctuation.remove(my_str)
print(result)