How to remove the alphanumeric characters from a list and split them in the result?

前端 未结 0 701
伪装坚强ぢ
伪装坚强ぢ 2021-02-15 23:34
\'\'\'def tokenize(s):
    string = s.lower().split()
    getVals = list([val for val in s if val.isalnum()])
    result = "".join(getVals) 
    print (result)         


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