2017-06-12 47 views

回答

1

你可以取现在的字符串,使用'ID ='子字符串作为分隔符来分割它,并捕获这个ID的部分。

tag_id = str(tag).split('ID=')[1]

+0

谢谢!为我工作。 – mkkagain