首页 > 代码库 > ascii characters switch

ascii characters switch

ascii = {}ascii[&#32;] =  ascii[&#33;] = !ascii[&#34;] = \"ascii[&#35;] = #ascii[&#36;] = $ascii[&#37;] = %ascii[&#38;] = &ascii[&#39;] = \‘ascii[&#40;] = (ascii[&#41;] = )ascii[&#42;] = *ascii[&#43;] = +ascii[&#44;] = ,ascii[&#45;] = -ascii[&#46;] = .ascii[&#47;] = /ascii[&#48;] = 0ascii[&#49;] = 1ascii[&#50;] = 2ascii[&#51;] = 3ascii[&#52;] = 4ascii[&#53;] = 5ascii[&#54;] = 6ascii[&#55;] = 7ascii[&#56;] = 8ascii[&#57;] = 9ascii[&#58;] = :ascii[&#59;] = ;ascii[&#60;] = <ascii[&#61;] = =ascii[&#62;] = >ascii[&#63;] = ?ascii[&#64;] = @ascii[&#65;] = Aascii[&#66;] = Bascii[&#67;] = Cascii[&#68;] = Dascii[&#69;] = Eascii[&#70;] = Fascii[&#71;] = Gascii[&#72;] = Hascii[&#73;] = Iascii[&#74;] = Jascii[&#75;] = Kascii[&#76;] = Lascii[&#77;] = Mascii[&#78;] = Nascii[&#79;] = Oascii[&#80;] = Pascii[&#81;] = Qascii[&#82;] = Rascii[&#83;] = Sascii[&#84;] = Tascii[&#85;] = Uascii[&#86;] = Vascii[&#87;] = Wascii[&#88;] = Xascii[&#89;] = Yascii[&#90;] = Zascii[&#91;] = [ascii[&#92;] = \\ascii[&#93;] = ]ascii[&#94;] = ^ascii[&#95;] = _ascii[&#96;] = `ascii[&#97;] = aascii[&#98;] = bascii[&#99;] = cascii[&#100;] = dascii[&#101;] = eascii[&#102;] = fascii[&#103;] = gascii[&#104;] = hascii[&#105;] = iascii[&#106;] = jascii[&#107;] = kascii[&#108;] = lascii[&#109;] = mascii[&#110;] = nascii[&#111;] = oascii[&#112;] = pascii[&#113;] = qascii[&#114;] = rascii[&#115;] = sascii[&#116;] = tascii[&#117;] = uascii[&#118;] = vascii[&#119;] = wascii[&#120;] = xascii[&#121;] = yascii[&#122;] = zascii[&#123;] = {ascii[&#124;] = |ascii[&#125;] = }ascii[&#126;] = ~
source_str = ‘‘‘<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body><Execute xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:c=\"http://www.w3.org/2001/XMLSchema\"><request xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\"><a:Parameters xmlns:b=\"http://schemas.datacontract.org/2004/07/System.Collections.Generic\"><a:KeyValuePairOfstringanyType><b:key>Query</b:key><b:value i:type=\"a" ":FetchExpression\"><a:Query>&#60;fetch aggregate&#61;&#39;true&#39; &#62;&#60;entity name&#61;&#39;postfollow&#39; &#62; &#60;attribute name&#61;&#39;regardingobjectid&#39; aggregate&#61;&#39;countcolumn&#39; alias&#61;&#39;countFollowers&#39; &#47;&#62; &#60;attribute name&#61;&#39;regardingobjecttypecode&#39; groupby&#61;&#39;true&#39; alias&#61;&#39;regarding&#39; &#47;&#62; &#60;attribute name&#61;&#39;regardingobjectid&#39; aggregate&#61;&#39;countcolumn&#39; alias&#61;&#39;" "f3e34a23856443b0b36611e6930629d4&#39; &#47;&#62; &#60;filter type&#61;&#39;and&#39;&#62;&#60;condition attribute&#61;&#39;ownerid&#39; operator&#61;&#39;eq&#39; value&#61;&#39;&#123;95C3F25C-7E84-E411-80BF-005056A80DE8&#125;&#39; &#47;&#62;&#60;condition attribute&#61;&#39;regardingobjectid&#39; operator&#61;&#39;ne&#39; value&#61;&#39;&#123;95C3F25C-7E84-E411-80BF-005056A80DE8&#125;&#39; &#47;&#62; &#60;&#47;filter&#62;&#60;&#47;entity&#62;&#60;&#47;fetch&#62;</a:Query></b:value></a" ":KeyValuePairOfstringanyType></a:Parameters><a:RequestId i:nil=\"true\" /><a:RequestName>RetrieveMultiple</a:RequestName></request></Execute></s:Body></s:Envelope>‘‘‘source_str = source_str.replace(\"\n\t\t\", ‘‘)for k, v in ascii.iteritems(): source_str = source_str.replace(k, v)print source_str

 

ascii characters switch