【发布时间】:2016-10-08 16:26:24
【问题描述】:
我有这个变量:
Words = ["Hi",".","how","are","you","?","I","feel","like","I","could",",","do","better"]
从这里我想要一个变量,它可以找到所有标点符号并将其放入一个列表中。像这样:
Punctuations = [".","?",","]
【问题讨论】:
-
方法有很多,有没有尝试过?
-
我使用了string.punctuation方法
标签: python list punctuation