>>> s = 'text=cssPath:"http://imgcache.qq.com/ptlogin/v4/style/32",sig:"OvL7F1OQEojtPkn5x2xdj1*uYPm*H3mpaOf3rs2M",clientip:"82ee3af631dd6ffe",serverip:"",version:"201404010930"' >>> import re >>> res = re.findall(r'sig:"([^"]+)"',s) >>> res ['OvL7F1OQEojtPkn5x2xdj1*uYPm*H3mpaOf3rs2M'] >>> res[0] 'OvL7F1OQEojtPkn5x2xdj1*uYPm*H3mpaOf3rs2M'本回答被提问者和网友采纳