It's not working because you are only extracting one word after you split:
adresse = [i.split(' ', 8)[3] for i in my_list`]
due to [3]
.
Try [3:]
instead. Ah, but that still won't be enough, because you'll get a list of lists, when you want a list of strings. So you also need to use join
.
adresse = [' '.join(i.split(' ', 8)[3:]) for i in my_list`]
Now your only difficulty is dealing with irregular street addresses, e.g. people who don't have a house number, or several words in the street name. I have no solution for that!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…