Aktywne Wpisy

saggitarius_a +10
W jakich okolicach Polski mówi się "jo"?
Zawsze mnie to bawi ( ͡° ͜ʖ ͡°)
Zawsze mnie to bawi ( ͡° ͜ʖ ͡°)

Juliusz-Banioski +94
chłop pojechał do hradec kralove i je knedliki #foodporn #spierdotrip
źródło: temp_file3576061684019944333
Pobierz



@blend:
#falszywyrozowypasek
źródło: comment_QjuCAly01vfNWpXbIMYDCDjc0jcPvKC6.jpg
Pobierz#prawdziwyniebieskipasek
def odwracanie(string, parameter):___num_to_reverse = [i for i in string if i not in parameter][::-1]
___constants = [(i, int(string.index(i))) for i in string if i in parameter]
___for j
def rev(s, ign):r = (t for t in reversed(s) if t not in ign)
return ''.join(t if t in ign else next(r) for t in s)
można trochę przyśpieszyć (kosztem pamięci) dodając na początku funkcji
ign = set(ign)constants = list(enumerate(i for i in string if i in ignore))in ign.@blend: To powinno wystarczyć:
def rev(s, ign):
return ''.join(t for t in reversed(s) if t not in ign)