[Python] how do i replace a query with a new value in urlparse?

Discussão em 'Python' iniciado por Stack, Março 13, 2025.

  1. Stack

    Stack Membro Participativo

    so I have a data as follows:

    item = '//s780.scene7.com/is/image/forever/301596014_001?hei=98&wid=98'


    using urlparse module. how can i replace the above data with a new size to make it look like this:

    item = '//s780.scene7.com/is/image/forever/301596014_001?hei=360&wid=360'

    Continue reading...

Compartilhe esta Página