Example
myStr = "https://pythonsmallsoultions.blogspot.com/?lang=en&page=0&pageSize=10"
myStr_list = myStr.split("&")
myStr_list[1] = 'page='+str(1)
myStr = "&".join(myStr_list)
>> OUTPUT:
https://pythonsmallsoultions.blogspot.com/?lang=en&page1&pageSize=10
Comments
Post a Comment