我目前正在尝试通过推特定位用户。你知道吗
我决定数一数词频。你知道吗
但是有一些词像'WeWouldwin'
或'AtGEO'
我想把它们分开,分别数一数。你知道吗
我想知道有没有一个pythonic的方法根据大写字母来区分它们?你知道吗
所以我会把这两个词分开,比如“We”、“would”、“Win”和“At”、“GEO”。你知道吗
我尝试了以下链接中的方法:
Split a string at uppercase letters
但这将给出单个大写字母(例如,“G”、“E”、“O”而不是“GEO”)
Tags:
你可以使用这个脚本
敬礼。你知道吗
相关问题 更多 >
编程相关推荐