这是python仿js escape()方法的编码过程: xpath = '%f%t部门成立时间%t%i部门%i//*[@fieldid="dept_form-area"]//*[@fieldid="createdate"]//*[text()="部门成立时间"]' print("编码前:\n" + xpath) xpath = xpath.encode('unicode_escape').decode('utf-8') xpath = xpath.replace('\\u'...
这是python仿js escape()方法的编码过程: xpath = '%f%t部门成立时间%t%i部门%i//*[@fieldid="dept_form-area"]//*[@fieldid="createdate"]//*[text()="部门成立时间"]' print("编码前:\n" + xpath) xpath = xpath.encode('unicode_escape').decode('utf-8') xpath = xpath.replace('\\u'...