import re
url = "https://cn.bing.com/search?q&qs"
pattern = r"/"
result = re.split(pattern, url)
result = [x for x in result if x]
print(result)
url = "https://cn.bing.com/search?q&qs"
pattern = r"/"
result = re.split(pattern, url)
result = [x for x in result if x]
print(result)