例如
url='http://www.test.com/a=1&b=2&c=3'
print url.split('&')[0]
我希望得到
url='http://www.test.com/a=1&b=2
也就是按最后一个&分
要怎么写?
url='http://www.test.com/a=1&b=2&c=3'
print url.split('&')[0]
我希望得到
url='http://www.test.com/a=1&b=2
也就是按最后一个&分
要怎么写?