url = “http://www.runoob.com/python/att-string-split.html”
path = url.split(’/’)[-1]
print(path)
输出
att-string-split.html
url.split(‘/‘)[-1]含义
最新推荐文章于 2024-01-29 16:05:31 发布
url = “http://www.runoob.com/python/att-string-split.html”
path = url.split(’/’)[-1]
print(path)
输出
att-string-split.html