如何从python中的字符串(URL)中获取各种单词?来自以下网址:
http://www.sample.com/level1/level2/index.html?id=1234
Run Code Online (Sandbox Code Playgroud)
我想得到像这样的话:
http, www, sample, com, level1, level2, index, html, id, 1234
Run Code Online (Sandbox Code Playgroud)
使用python的任何解决方案.
谢谢.