我正在尝试使用Python将字符串转换为单词列表。我想要将类似以下的内容:
string = 'This is a string, with words!'
转换成类似这样的内容:
list = ['This', 'is', 'a', 'string', 'with', 'words']
注意,标点符号和空格被省略了。有什么最快的方法可以实现这个?
用户名或邮箱地址
密码