{"id":48949,"date":"2020-03-09T23:02:48","date_gmt":"2020-03-09T15:02:48","guid":{"rendered":"http:\/\/4563.org\/?p=48949"},"modified":"2020-03-09T23:02:48","modified_gmt":"2020-03-09T15:02:48","slug":"python%e5%92%8cjavascript%e9%83%bd%e4%b8%ad%e6%96%87%e7%bc%96%e7%a8%8b%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=48949","title":{"rendered":"python\u548cjavascript\u90fd\u4e2d\u6587\u7f16\u7a0b\uff1f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>jekyll<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>python\u548cjavascript\u90fd\u4e2d\u6587\u7f16\u7a0b\uff1f<\/h3>\n<p>  \t\t\u6709\u4e86\u8fd9\u4e2a\uff0c\u505a\u5783\u573e\u7ad9\u957f\u5c3e\u65b9\u4fbf\u591a\u4e86\u3002<\/p>\n<p>  python\uff1a<\/p>\n<p>  #!\/usr\/bin\/python<br \/>  # -*- coding: UTF-8 -*-<\/p>\n<p>  import os, re<br \/>  import random,readJSON<\/p>\n<p>  data = readJSON.\u8bfbJSON\u6587\u4ef6(&quot;data.json&quot;)<br \/>  \u540d\u4eba\u540d\u8a00 = data[&quot;famous&quot;] # a \u4ee3\u8868\u524d\u9762\u57ab\u8bdd\uff0cb\u4ee3\u8868\u540e\u9762\u57ab\u8bdd<br \/>  \u524d\u9762\u57ab\u8bdd = data[&quot;before&quot;] # \u5728\u540d\u4eba\u540d\u8a00\u524d\u9762\u5f04\u70b9\u5e9f\u8bdd<br \/>  \u540e\u9762\u57ab\u8bdd = data[&#8216;after&#8217;]# \u5728\u540d\u4eba\u540d\u8a00\u540e\u9762\u5f04\u70b9\u5e9f\u8bdd<br \/>  \u5e9f\u8bdd = data[&#8216;bosh&#8217;] # \u4ee3\u8868\u6587\u7ae0\u4e3b\u8981\u5e9f\u8bdd\u6765\u6e90<\/p>\n<p>  xx = &quot;\u5b66\u751f\u4f1a\u9000\u4f1a&quot;<\/p>\n<p>  \u91cd\u590d\u5ea6 = 2<\/p>\n<p>  def \u6d17\u724c\u904d\u5386(\u5217\u8868):<br \/>  &nbsp; &nbsp; global \u91cd\u590d\u5ea6<br \/>  &nbsp; &nbsp; \u6c60 = list(\u5217\u8868) * \u91cd\u590d\u5ea6<br \/>  &nbsp; &nbsp; while True:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;random.shuffle(\u6c60)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;for \u5143\u7d20 in \u6c60:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;yield \u5143\u7d20<\/p>\n<p>  \u4e0b\u4e00\u53e5\u5e9f\u8bdd = \u6d17\u724c\u904d\u5386(\u5e9f\u8bdd)<br \/>  \u4e0b\u4e00\u53e5\u540d\u4eba\u540d\u8a00 = \u6d17\u724c\u904d\u5386(\u540d\u4eba\u540d\u8a00)<\/p>\n<p>  def \u6765\u70b9\u540d\u4eba\u540d\u8a00():<br \/>  &nbsp; &nbsp; global \u4e0b\u4e00\u53e5\u540d\u4eba\u540d\u8a00<br \/>  &nbsp; &nbsp; xx = next(\u4e0b\u4e00\u53e5\u540d\u4eba\u540d\u8a00)<br \/>  &nbsp; &nbsp; xx = xx.replace(&quot;a&quot;,random.choice(\u524d\u9762\u57ab\u8bdd) )<br \/>  &nbsp; &nbsp; xx = xx.replace(&quot;b&quot;,random.choice(\u540e\u9762\u57ab\u8bdd) )<br \/>  &nbsp; &nbsp; return xx<\/p>\n<p>  def \u53e6\u8d77\u4e00\u6bb5():<br \/>  &nbsp; &nbsp; xx = &quot;. &quot;<br \/>  &nbsp; &nbsp; xx += &quot;rn&quot;<br \/>  &nbsp; &nbsp; xx += &quot;&nbsp; &nbsp; &quot;<br \/>  &nbsp; &nbsp; return xx<\/p>\n<p>  if __name__ == &quot;__main__&quot;:<br \/>  &nbsp; &nbsp; xx = input(&quot;\u8bf7\u8f93\u5165\u6587\u7ae0\u4e3b\u9898:&quot;)<br \/>  &nbsp; &nbsp; for x in xx:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;tmp = str()<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;while ( len(tmp) &lt; 6000 ) :<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\u5206\u652f = random.randint(0,100)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if \u5206\u652f &lt; 5:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; tmp += \u53e6\u8d77\u4e00\u6bb5()<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;elif \u5206\u652f &lt; 20 :<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; tmp += \u6765\u70b9\u540d\u4eba\u540d\u8a00()<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;else:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; tmp += next(\u4e0b\u4e00\u53e5\u5e9f\u8bdd)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;tmp = tmp.replace(&quot;x&quot;,xx)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;print(tmp)\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6728\u5b50\u55b5<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u65b9\u6cd5\u540d\uff0c\u53d8\u91cf\u540d\uff0c\u7c7b\u540d\u7b49\u90fd\u53ef\u4ee5\u4e2d\u6587\u7684\u54e6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>jekyll<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tjs\uff1a<\/p>\n<p>  &lt;script&gt;<\/p>\n<p>  window.$ = function (selector) {<br \/>  return document.querySelector(selector);<br \/>  }<\/p>\n<p>  let \u4e3b\u9898 = &quot;\u4e00\u5929\u6389\u591a\u5c11\u6839\u5934\u53d1&quot;<\/p>\n<p>  let \u8bba\u8ff0 = [ <br \/>  &nbsp; &nbsp; &quot;\u73b0\u5728\uff0c\u89e3\u51b3\u4e3b\u9898\u7684\u95ee\u9898\uff0c\u662f\u975e\u5e38\u975e\u5e38\u91cd\u8981\u7684\u3002 \u6240\u4ee5\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u6211\u4eec\u4e0d\u5f97\u4e0d\u9762\u5bf9\u4e00\u4e2a\u975e\u5e38\u5c34\u5c2c\u7684\u4e8b\u5b9e\uff0c\u90a3\u5c31\u662f\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u4e3b\u9898\u7684\u53d1\u751f\uff0c\u5230\u5e95\u9700\u8981\u5982\u4f55\u505a\u5230\uff0c\u4e0d\u4e3b\u9898\u7684\u53d1\u751f\uff0c\u53c8\u4f1a\u5982\u4f55\u4ea7\u751f\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u800c\u8fd9\u4e9b\u5e76\u4e0d\u662f\u5b8c\u5168\u91cd\u8981\uff0c\u66f4\u52a0\u91cd\u8981\u7684\u95ee\u9898\u662f\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u4e3b\u9898\uff0c\u5230\u5e95\u5e94\u8be5\u5982\u4f55\u5b9e\u73b0\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u5e26\u7740\u8fd9\u4e9b\u95ee\u9898\uff0c\u6211\u4eec\u6765\u5ba1\u89c6\u4e00\u4e0b\u4e3b\u9898\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u6240\u8c13\u4e3b\u9898\uff0c\u5173\u952e\u662f\u4e3b\u9898\u9700\u8981\u5982\u4f55\u5199\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u6211\u4eec\u4e00\u822c\u8ba4\u4e3a\uff0c\u6293\u4f4f\u4e86\u95ee\u9898\u7684\u5173\u952e\uff0c\u5176\u4ed6\u4e00\u5207\u5219\u4f1a\u8fce\u5203\u800c\u89e3\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u95ee\u9898\u7684\u5173\u952e\u7a76\u7adf\u4e3a\u4f55? &quot;,<br \/>  &nbsp; &nbsp; &quot;\u4e3b\u9898\u56e0\u4f55\u800c\u53d1\u751f?&quot;,<br \/>  &nbsp; &nbsp; &quot;\u6bcf\u4e2a\u4eba\u90fd\u4e0d\u5f97\u4e0d\u9762\u5bf9\u8fd9\u4e9b\u95ee\u9898\u3002 \u5728\u9762\u5bf9\u8fd9\u79cd\u95ee\u9898\u65f6\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u4e00\u822c\u6765\u8bb2\uff0c\u6211\u4eec\u90fd\u5fc5\u987b\u52a1\u5fc5\u614e\u91cd\u7684\u8003\u8651\u8003\u8651\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u8981\u60f3\u6e05\u695a\uff0c\u4e3b\u9898\uff0c\u5230\u5e95\u662f\u4e00\u79cd\u600e\u4e48\u6837\u7684\u5b58\u5728\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u4e86\u89e3\u6e05\u695a\u4e3b\u9898\u5230\u5e95\u662f\u4e00\u79cd\u600e\u4e48\u6837\u7684\u5b58\u5728\uff0c\u662f\u89e3\u51b3\u4e00\u5207\u95ee\u9898\u7684\u5173\u952e\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u5c31\u6211\u4e2a\u4eba\u6765\u8bf4\uff0c\u4e3b\u9898\u5bf9\u6211\u7684\u610f\u4e49\uff0c\u4e0d\u80fd\u4e0d\u8bf4\u975e\u5e38\u91cd\u5927\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u672c\u4eba\u4e5f\u662f\u7ecf\u8fc7\u4e86\u6df1\u601d\u719f\u8651\uff0c\u5728\u6bcf\u4e2a\u65e5\u65e5\u591c\u591c\u601d\u8003\u8fd9\u4e2a\u95ee\u9898\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u4e3b\u9898\uff0c\u53d1\u751f\u4e86\u4f1a\u5982\u4f55\uff0c\u4e0d\u53d1\u751f\u53c8\u4f1a\u5982\u4f55\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u5728\u8fd9\u79cd\u56f0\u96be\u7684\u6289\u62e9\u4e0b\uff0c\u672c\u4eba\u601d\u6765\u60f3\u53bb\uff0c\u5bdd\u98df\u96be\u5b89\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u751f\u6d3b\u4e2d\uff0c\u82e5\u4e3b\u9898\u51fa\u73b0\u4e86\uff0c\u6211\u4eec\u5c31\u4e0d\u5f97\u4e0d\u8003\u8651\u5b83\u51fa\u73b0\u4e86\u7684\u4e8b\u5b9e\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u8fd9\u79cd\u4e8b\u5b9e\u5bf9\u672c\u4eba\u6765\u8bf4\u610f\u4e49\u91cd\u5927\uff0c\u76f8\u4fe1\u5bf9\u8fd9\u4e2a\u4e16\u754c\u4e5f\u662f\u6709\u4e00\u5b9a\u610f\u4e49\u7684\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u6211\u4eec\u90fd\u77e5\u9053\uff0c\u53ea\u8981\u6709\u610f\u4e49\uff0c\u90a3\u4e48\u5c31\u5fc5\u987b\u614e\u91cd\u8003\u8651\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u65e2\u7136\u5982\u6b64\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u90a3\u4e48\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u6211\u8ba4\u4e3a\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u4e00\u822c\u6765\u8bf4\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u603b\u7ed3\u7684\u6765\u8bf4\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u65e2\u7136\u5982\u4f55\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u7ecf\u8fc7\u4e0a\u8ff0\u8ba8\u8bba&quot;,<br \/>  ]<\/p>\n<p>  let \u540d\u4eba\u540d\u8a00 = [<br \/>  &nbsp; &nbsp; &quot;\u4f0f\u5c14\u6cf0\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u4e0d\u7ecf\u5de8\u5927\u7684\u56f0\u96be\uff0c\u4e0d\u4f1a\u6709\u4f1f\u5927\u7684\u4e8b\u4e1a\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5bcc\u52d2\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u82e6\u96be\u78e8\u70bc\u4e00\u4e9b\u4eba\uff0c\u4e5f\u6bc1\u706d\u53e6\u4e00\u4e9b\u4eba\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u6587\u68ee\u7279\u00b7\u76ae\u5c14\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u6539\u53d8\u4f60\u7684\u60f3\u6cd5\uff0c\u4f60\u5c31\u6539\u53d8\u4e86\u81ea\u5df1\u7684\u4e16\u754c\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u62ff\u7834\u4ed1\u00b7\u5e0c\u5c14\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u4e0d\u8981\u7b49\u5f85\uff0c\u65f6\u673a\u6c38\u8fdc\u4e0d\u4f1a\u6070\u5230\u597d\u5904\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u585e\u6d85\u5361\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u751f\u547d\u5982\u540c\u5bd3\u8a00\uff0c\u5176\u4ef7\u503c\u4e0d\u5728\u4e0e\u957f\u77ed\uff0c\u800c\u5728\u4e0e\u5185\u5bb9\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5965\u666e\u62c9\u00b7\u6e29\u5f17\u745e\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u4f60\u76f8\u4fe1\u4ec0\u4e48\uff0c\u4f60\u5c31\u6210\u4e3a\u4ec0\u4e48\u6837\u7684\u4eba\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5415\u51ef\u7279\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u751f\u547d\u4e0d\u53ef\u80fd\u6709\u4e24\u6b21\uff0c\u4f46\u8bb8\u591a\u4eba\u8fde\u4e00\u6b21\u4e5f\u4e0d\u5584\u4e8e\u5ea6\u8fc7\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u838e\u58eb\u6bd4\u4e9a\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u4eba\u7684\u4e00\u751f\u662f\u77ed\u7684\uff0c\u4f46\u5982\u679c\u5351\u52a3\u5730\u8fc7\u8fd9\u4e00\u751f\uff0c\u5c31\u592a\u957f\u4e86\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u7b1b\u5361\u513f\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u6211\u7684\u52aa\u529b\u6c42\u5b66\u6ca1\u6709\u5f97\u5230\u522b\u7684\u597d\u5904\uff0c\u53ea\u4e0d\u8fc7\u662f\u6108\u6765\u6108\u53d1\u89c9\u81ea\u5df1\u7684\u65e0\u77e5\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5de6\u62c9\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u751f\u6d3b\u7684\u9053\u8def\u4e00\u65e6\u9009\u5b9a\uff0c\u5c31\u8981\u52c7\u6562\u5730\u8d70\u5230\u5e95\uff0c\u51b3\u4e0d\u56de\u5934\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u7c73\u6b47\u6f58\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u751f\u547d\u662f\u4e00\u6761\u8270\u9669\u7684\u5ce1\u8c37\uff0c\u53ea\u6709\u52c7\u6562\u7684\u4eba\u624d\u80fd\u901a\u8fc7\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5409\u59c6\u00b7\u7f57\u6069\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u8981\u4e48\u4f60\u4e3b\u5bb0\u751f\u6d3b\uff0c\u8981\u4e48\u4f60\u88ab\u751f\u6d3b\u4e3b\u5bb0\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u65e5\u672c\u8c1a\u8bed\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u4e0d\u5e78\u53ef\u80fd\u6210\u4e3a\u901a\u5411\u5e78\u798f\u7684\u6865\u6881\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u6d77\u8d1d\u5c14\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u4eba\u751f\u5c31\u662f\u5b66\u6821\u3002\u5728\u90a3\u91cc\uff0c\u4e0e\u5176\u8bf4\u597d\u7684\u6559\u5e08\u662f\u5e78\u798f\uff0c\u4e0d\u5982\u8bf4\u597d\u7684\u6559\u5e08\u662f\u4e0d\u5e78\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u6770\u7eb3\u52d2\u5c14\u00b7\u4e54\u6cbb\u00b7S\u00b7\u5df4\u987f\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u63a5\u53d7\u6311\u6218\uff0c\u5c31\u53ef\u4ee5\u4eab\u53d7\u80dc\u5229\u7684\u559c\u60a6\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5fb7\u8c1f\u514b\u5229\u7279\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u8282\u5236\u4f7f\u5feb\u4e50\u589e\u52a0\u5e76\u4f7f\u4eab\u53d7\u52a0\u5f3a\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u88f4\u65af\u6cf0\u6d1b\u9f50\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u4eca\u5929\u5e94\u505a\u7684\u4e8b\u6ca1\u6709\u505a\uff0c\u660e\u5929\u518d\u65e9\u4e5f\u662f\u803d\u8bef\u4e86\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u6b4c\u5fb7\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u51b3\u5b9a\u4e00\u4e2a\u4eba\u7684\u4e00\u751f\uff0c\u4ee5\u53ca\u6574\u4e2a\u547d\u8fd0\u7684\uff0c\u53ea\u662f\u4e00\u77ac\u4e4b\u95f4\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5361\u8010\u57fa\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u4e00\u4e2a\u4e0d\u6ce8\u610f\u5c0f\u4e8b\u60c5\u7684\u4eba\uff0c\u6c38\u8fdc\u4e0d\u4f1a\u6210\u5c31\u5927\u4e8b\u4e1a\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5362\u68ad\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u6d6a\u8d39\u65f6\u95f4\u662f\u4e00\u6869\u5927\u7f6a\u8fc7\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5eb7\u5fb7\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u65e2\u7136\u6211\u5df2\u7ecf\u8e0f\u4e0a\u8fd9\u6761\u9053\u8def\uff0c\u90a3\u4e48\uff0c\u4efb\u4f55\u4e1c\u897f\u90fd\u4e0d\u5e94\u59a8\u788d\u6211\u6cbf\u7740\u8fd9\u6761\u8def\u8d70\u4e0b\u53bb\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u514b\u52b3\u65af\u00b7\u83ab\u745f\u7235\u58eb\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u6559\u80b2\u9700\u8981\u82b1\u8d39\u94b1\uff0c\u800c\u65e0\u77e5\u4e5f\u662f\u4e00\u6837\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u4f0f\u5c14\u6cf0\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u575a\u6301\u610f\u5fd7\u4f1f\u5927\u7684\u4e8b\u4e1a\u9700\u8981\u59cb\u7ec8\u4e0d\u6e1d\u7684\u7cbe\u795e\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u4e9a\u4f2f\u62c9\u7f55\u00b7\u6797\u80af\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u4f60\u6d3b\u4e86\u591a\u5c11\u5c81\u4e0d\u7b97\u4ec0\u4e48\uff0c\u91cd\u8981\u7684\u662f\u4f60\u662f\u5982\u4f55\u5ea6\u8fc7\u8fd9\u4e9b\u5c81\u6708\u7684\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  &nbsp; &nbsp; &quot;\u97e9\u975e\u66fe\u7ecf\u8bf4\u8fc7\uff0c\u5185\u5916\u76f8\u5e94\uff0c\u8a00\u884c\u76f8\u79f0\u3002\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;,<br \/>  ]<\/p>\n<p>  let \u540e\u9762\u57ab\u8bdd = [<br \/>  &nbsp; &nbsp; &quot;\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u5e26\u7740\u8fd9\u53e5\u8bdd\uff0c\u6211\u4eec\u8fd8\u8981\u66f4\u52a0\u614e\u91cd\u7684\u5ba1\u89c6\u8fd9\u4e2a\u95ee\u9898\uff1a &quot;,<br \/>  &nbsp; &nbsp; &quot;\u8fd9\u542f\u53d1\u4e86\u6211\uff0c &quot;,<br \/>  &nbsp; &nbsp; &quot;\u6211\u5e0c\u671b\u8bf8\u4f4d\u4e5f\u80fd\u597d\u597d\u5730\u4f53\u4f1a\u8fd9\u53e5\u8bdd\u3002 &quot;,<br \/>  &nbsp; &nbsp; &quot;\u8fd9\u53e5\u8bdd\u8bed\u867d\u7136\u5f88\u77ed\uff0c\u4f46\u4ee4\u6211\u6d6e\u60f3\u8054\u7fe9\u3002 &quot;,<br \/>  ]<\/p>\n<p>  let \u524d\u9762\u57ab\u8bdd = [<br \/>  &nbsp; &nbsp; &quot;\u66fe\u7ecf\u8bf4\u8fc7&quot;,<br \/>  &nbsp; &nbsp; &quot;\u5728\u4e0d\u7ecf\u610f\u95f4\u8fd9\u6837\u8bf4\u8fc7&quot;,<br \/>  ]<\/p>\n<p>  function \u968f\u4fbf\u53d6\u4e00\u53e5(\u5217\u8868){<br \/>  &nbsp; &nbsp; let \u5750\u6807 = Math.floor( Math.random() * \u5217\u8868.length );<br \/>  &nbsp; &nbsp; return \u5217\u8868[\u5750\u6807];<br \/>  }<\/p>\n<p>  function \u968f\u4fbf\u53d6\u4e00\u4e2a\u6570(\u6700\u5c0f\u503c = 0,\u6700\u5927\u503c = 100){<br \/>  &nbsp; &nbsp; let \u6570\u5b57 = Math.random()*( \u6700\u5927\u503c &#8211; \u6700\u5c0f\u503c ) + \u6700\u5c0f\u503c;<br \/>  &nbsp; &nbsp; return \u6570\u5b57;<br \/>  }<\/p>\n<p>  function \u6765\u70b9\u540d\u4eba\u540d\u8a00(){<br \/>  &nbsp; &nbsp; let \u540d\u8a00 = \u968f\u4fbf\u53d6\u4e00\u53e5(\u540d\u4eba\u540d\u8a00)<br \/>  &nbsp; &nbsp; \u540d\u8a00 = \u540d\u8a00.replace(&quot;\u66fe\u7ecf\u8bf4\u8fc7&quot;, \u968f\u4fbf\u53d6\u4e00\u53e5(\u524d\u9762\u57ab\u8bdd) )<br \/>  &nbsp; &nbsp; \u540d\u8a00 = \u540d\u8a00.replace(&quot;\u8fd9\u4e0d\u7981\u4ee4\u6211\u6df1\u601d&quot;, \u968f\u4fbf\u53d6\u4e00\u53e5(\u540e\u9762\u57ab\u8bdd) )<br \/>  &nbsp; &nbsp; return \u540d\u8a00<br \/>  }<\/p>\n<p>  function \u6765\u70b9\u8bba\u8ff0(){<br \/>  &nbsp; &nbsp; let \u53e5\u5b50 = \u968f\u4fbf\u53d6\u4e00\u53e5(\u8bba\u8ff0);<br \/>  &nbsp; &nbsp; \u53e5\u5b50 = \u53e5\u5b50.replace(RegExp(&quot;\u4e3b\u9898&quot;, &quot;g&quot;),\u4e3b\u9898);<br \/>  &nbsp; &nbsp; return \u53e5\u5b50;<br \/>  }<\/p>\n<p>  function \u589e\u52a0\u6bb5\u843d(\u7ae0\u8282){<br \/>  &nbsp; &nbsp; if(\u7ae0\u8282[\u7ae0\u8282.length-1] === &quot; &quot;){<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;\u7ae0\u8282 = \u7ae0\u8282.slice(0,-2)<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; return &quot;\u3000\u3000&quot; + \u7ae0\u8282 + &quot;\u3002 &quot;<br \/>  }<\/p>\n<p>  function \u751f\u6210\u6587\u7ae0(){<br \/>  &nbsp; &nbsp; \u4e3b\u9898 = $(&#8216;input&#8217;).value<br \/>  &nbsp; &nbsp; let \u6587\u7ae0 = []<br \/>  &nbsp; &nbsp; for(let \u7a7a in \u4e3b\u9898){<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;let \u7ae0\u8282 = &quot;&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;let \u7ae0\u8282\u957f\u5ea6 = 0;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;while( \u7ae0\u8282\u957f\u5ea6 &lt; 6000 ){<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;let \u968f\u673a\u6570 = \u968f\u4fbf\u53d6\u4e00\u4e2a\u6570();<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if(\u968f\u673a\u6570 &lt; 5 &amp;&amp; \u7ae0\u8282.length &gt; 200){<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \u7ae0\u8282 = \u589e\u52a0\u6bb5\u843d(\u7ae0\u8282);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \u6587\u7ae0.push(\u7ae0\u8282); <br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \u7ae0\u8282 = &quot;&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;}else if(\u968f\u673a\u6570 &lt; 20){<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; let \u53e5\u5b50 = \u6765\u70b9\u540d\u4eba\u540d\u8a00();<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \u7ae0\u8282\u957f\u5ea6 = \u7ae0\u8282\u957f\u5ea6 + \u53e5\u5b50.length;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \u7ae0\u8282 = \u7ae0\u8282 + \u53e5\u5b50;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;}else{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; let \u53e5\u5b50 = \u6765\u70b9\u8bba\u8ff0();<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \u7ae0\u8282\u957f\u5ea6 = \u7ae0\u8282\u957f\u5ea6 + \u53e5\u5b50.length;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \u7ae0\u8282 = \u7ae0\u8282 + \u53e5\u5b50;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;\u7ae0\u8282 = \u589e\u52a0\u6bb5\u843d(\u7ae0\u8282);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;\u6587\u7ae0.push(\u7ae0\u8282);<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; let \u6392\u7248 = &quot;&lt;div&gt;&quot; + \u6587\u7ae0.join(&quot;&lt;\/div&gt;&lt;div&gt;&quot;) + &quot;&lt;\/div&gt;&quot;;<br \/>  &nbsp; &nbsp; $(&quot;#\u8bba\u6587&quot;).innerHTML = \u6392\u7248;<br \/>  }<\/p>\n<p>  &lt;\/script&gt;\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>tonyma<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tpython3\u652f\u6301\u4e86\uff0c\u53ea\u4e0d\u8fc7\u662f\u4f2a\u4ee3\u7801\uff0c\u53ef\u80fd\u5bf9\u4e8e\u4e00\u4e9b\u4e0d\u592a\u719f\u6089\u82f1\u6587\u5f97\u4eba\u53ef\u4ee5\u63d0\u9ad8\u9605\u8bfb\u6548\u7387\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>cherbim<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u7b97\u54ea\u95e8\u5b50\u4e2d\u6587\u7f16\u7a0b\uff0c\u53ea\u4e0d\u8fc7\u7c7b\/\u65b9\u6cd5\/\u53d8\u91cf\u540d\u652f\u6301\u4e2d\u6587\u7f62\u4e86\uff0c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kzklot<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t&#8230;.\u53cd\u800c..\u66f4\u770b\u4e0d\u61c2&#8230;?!yc003t<\/p>\n<p>  \u222e \u4f60\u4ece80\u697c\u5f80\u4e0b\u770b\uff0c\u5168\u662f\u7f8e\u666f\uff1b\u4f46\u4f60\u4ece2\u697c\u5f80\u4e0b\u770b\uff0c\u5168\u662f\u5783\u573e\u3002\u4eba\u82e5\u6ca1\u6709\u9ad8\u5ea6\uff0c\u770b\u5230\u7684\u5168\u662f\u95ee\u9898\uff1b\u4eba\u82e5\u6ca1\u6709\u683c\u5c40\uff0c\u770b\u5230\u7684\u5168\u662f\u9e21\u6bdb\u849c\u76ae\uff01 \u222e\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kindlecon<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u771f\u53cd\u800c\u770b\u4e0d\u61c2\u3002<br \/>  \u4e2d\u6587\u7f16\u7a0b\u7b97\u662f\u4f2a\u9700\u6c42\u5427\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5feb\u96ea\u65f6\u6674<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u8fd8\u4ee5\u4e3a\u4e2d\u79d1\u9662\u53c8\u6709\u4ec0\u4e48\u65b0\u6210\u679c\u5462\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>jekyll \u5927\u4f6c\u6709\u8bdd\u8bf4 : py&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/48949"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48949"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/48949\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48949"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}