展开
function _typeof(e){ return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e; } !function(e){ if("object"===("undefined"==typeof module?"undefined":_typeof(module)))module.exports=e;else{ if(window.__second_open__)return; var t="Python除了不写操作系统,可以写任何东西"; t?e(t,!0):e("Python除了不写操作系统,可以写任何东西"); } }(function(e,t){ function a(e,t){ var a=e.match(new RegExp(t+"\\s*=\\s*[\"']?([^\"'\\s>]+)[\"']?")); return a&&a[1]; } function n(e){ e=e.split(/(<a\s+\w[^>]*>)(.*?)(<\/a>)/); for(var t,n=0;n<e.length;n++)if(n%4===1){ t=!1; var i=a(e[n],"href"); /^https?:\/\/mp\.weixin\.qq\.com/.test(i)&&(t=!0); var o='<a target="_blank" data-href="'+(t?i:"javascript:void 0")+'"',r=a(e[n],"data-miniprogram-appid"); if(r)o+=' class="weapp_text_link" data-miniprogram-type="text" data-miniprogram-appid="'+r+'" data-miniprogram-path="'+(a(e[n],"data-miniprogram-path")||"")+'" data-miniprogram-nickname="'+(a(e[n],"data-miniprogram-nickname")||"")+'" data-miniprogram-servicetype="'+(a(e[n],"data-miniprogram-servicetype")||"0")+'"', t=!0;else if(t){ o+=' class="js_video_desc_link"'; var d=a(e[n],"data-itemshowtype"); d&&(o+=' data-itemshowtype="'+d+'"'); } e[n]=t?o+">":""; }else n%4===3?!t&&(e[n]=""):e[n]=e[n].replace(/<.*?>/g,""); return e.join(""); } e=t?window.__emojiFormat(n(e).replace(/\r/g,"").replace(/\n/g,"
")):e.replace(/\r/g,"").replace(/\n/g,"
").replace(/\s/g," "); var i=document.getElementById("js_common_share_desc"),o=document.getElementById("js_common_share_desc1"); i&&o&&(i.innerHTML=e,o.innerHTML=e,setTimeout(function(){ if(o.offsetHeight>i.offsetHeight+1){ var e=document.getElementById("js_folder_text_switch"),t=parseFloat(getComputedStyle(o).fontSize,10); e.style.display="block",e.setAttribute("data-height",o.offsetHeight/(t||16)); } },300)); });
本文分享自微信公众号 - 开源优测(DeepTest)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。