{"id":95402,"date":"2026-08-26T11:32:48","date_gmt":"2026-08-26T03:32:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/95402.html"},"modified":"2026-08-26T11:32:48","modified_gmt":"2026-08-26T03:32:48","slug":"%e3%80%90python-%e5%85%a5%e9%97%a8%e3%80%91python-%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e9%9b%b6%e5%9f%ba%e7%a1%80%e8%ae%b2%e8%a7%a3%ef%bc%9a%e5%9f%ba%e7%a1%80%e8%af%ad%e6%b3%95-%e5%85%83","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/95402.html","title":{"rendered":"\u3010Python \u5165\u95e8\u3011Python \u6b63\u5219\u8868\u8fbe\u5f0f\u96f6\u57fa\u7840\u8bb2\u89e3\uff1a\u57fa\u7840\u8bed\u6cd5 + \u5143\u5b57\u7b26 + \u5e38\u7528\u6848\u4f8b"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u57fa\u7840&#xff1a;re \u6a21\u5757\u4e09\u5927\u65b9\u6cd5<\/li>\n<li>\n<ul>\n<li>1.1 &#096;re.match()&#096;&#xff1a;\u5f00\u5934\u5339\u914d<\/li>\n<li>1.2 &#096;re.search()&#096;&#xff1a;\u67e5\u627e\u7b2c\u4e00\u4e2a<\/li>\n<li>1.3 &#096;re.findall()&#096;&#xff1a;\u67e5\u627e\u5168\u90e8<\/li>\n<li>1.4 &#096;re.sub()&#096;&#xff1a;\u66ff\u6362<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001\u5143\u5b57\u7b26\u5339\u914d\u89c4\u5219<\/li>\n<li>\n<ul>\n<li>2.1 \u5355\u5b57\u7b26\u5339\u914d<\/li>\n<li>2.2 \u6570\u91cf\u5339\u914d<\/li>\n<li>2.3 \u8fb9\u754c\u5339\u914d<\/li>\n<li>2.4 \u5206\u7ec4\u4e0e\u9009\u62e9<\/li>\n<li>2.5 \u5173\u4e8e&#096;r&#096;\u524d\u7f00<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u3001\u6848\u4f8b\u6f14\u793a<\/li>\n<li>\n<ul>\n<li>\u6848\u4f8b 1&#xff1a;\u8d26\u53f7\u6821\u9a8c<\/li>\n<li>\u6848\u4f8b 2&#xff1a;QQ \u53f7\u6821\u9a8c<\/li>\n<li>\u6848\u4f8b 3&#xff1a;\u63d0\u53d6 URL \u94fe\u63a5<\/li>\n<li>\u6848\u4f8b 4&#xff1a;\u624b\u673a\u53f7\u6821\u9a8c<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001\u8fdb\u9636\u4f18\u5316&#xff1a;\u9884\u7f16\u8bd1\u6b63\u5219<\/li>\n<li>\u4e94\u3001\u6613\u9519\u70b9\u603b\u7ed3<\/li>\n<li>\u516d\u3001\u603b\u7ed3<\/li>\n<\/ul>\n<h2>\u524d\u8a00<\/h2>\n<p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5904\u7406\u5b57\u7b26\u4e32\u7684\u5f3a\u5927\u5de5\u5177&#xff0c;\u901a\u8fc7\u7279\u6b8a\u7684\u5b57\u7b26\u5e8f\u5217&#xff0c;\u53ef\u4ee5\u5feb\u901f\u5b8c\u6210\u5b57\u7b26\u4e32\u7684\u5339\u914d\u3001\u67e5\u627e\u3001\u66ff\u6362\u3001\u6821\u9a8c\u7b49\u64cd\u4f5c&#xff0c;\u5728\u722c\u866b\u3001\u6570\u636e\u6e05\u6d17\u3001\u8868\u5355\u9a8c\u8bc1\u7b49\u573a\u666f\u4e2d\u975e\u5e38\u5e38\u7528\u3002\u672c\u6587\u4ece Python \u7684re\u6a21\u5757\u57fa\u7840\u8bb2\u8d77&#xff0c;\u7cfb\u7edf\u68b3\u7406\u5143\u5b57\u7b26\u89c4\u5219&#xff0c;\u5e76\u642d\u914d\u5b9e\u6218\u6848\u4f8b&#xff0c;\u5e26\u4f60\u5feb\u901f\u638c\u63e1\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n<h2>\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u57fa\u7840&#xff1a;re \u6a21\u5757\u4e09\u5927\u65b9\u6cd5<\/h2>\n<p>Python \u901a\u8fc7\u5185\u7f6e\u7684re\u6a21\u5757\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f&#xff0c;\u6838\u5fc3\u6709\u4e09\u4e2a\u57fa\u7840\u5339\u914d\u65b9\u6cd5\u3002<\/p>\n<h3>1.1 re.match()&#xff1a;\u5f00\u5934\u5339\u914d<\/h3>\n<p>\u4ece\u5b57\u7b26\u4e32\u5f00\u5934\u8fdb\u884c\u5339\u914d&#xff0c;\u5f00\u5934\u5339\u914d\u6210\u529f\u5219\u8fd4\u56de\u5339\u914d\u5bf9\u8c61&#xff0c;\u5931\u8d25\u8fd4\u56deNone\u3002 \u8bed\u6cd5&#xff1a;re.match(\u5339\u914d\u89c4\u5219, \u88ab\u5339\u914d\u5b57\u7b26\u4e32)<\/p>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p>s <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;python linux&#034;<\/span><br \/>\nresult <span class=\"token operator\">&#061;<\/span> re<span class=\"token punctuation\">.<\/span><span class=\"token keyword\">match<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;python&#034;<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">)<\/span>           <span class=\"token comment\"># &lt;re.Match object; span&#061;(0, 6), match&#061;&#039;python&#039;&gt;<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">.<\/span>group<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>   <span class=\"token comment\"># \u83b7\u53d6\u5339\u914d\u5230\u7684\u5185\u5bb9&#xff1a;python<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">.<\/span>span<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>    <span class=\"token comment\"># \u83b7\u53d6\u5339\u914d\u4e0b\u6807\u8303\u56f4&#xff1a;(0, 6)<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u53ea\u8981\u5f00\u5934\u4e0d\u5339\u914d&#xff0c;\u5373\u4f7f\u540e\u9762\u6709\u7b26\u5408\u89c4\u5219\u7684\u5185\u5bb9&#xff0c;\u4e5f\u8fd4\u56de None\u3002<\/p>\n<h3>1.2 re.search()&#xff1a;\u67e5\u627e\u7b2c\u4e00\u4e2a<\/h3>\n<p>\u641c\u7d22\u6574\u4e2a\u5b57\u7b26\u4e32&#xff0c;\u627e\u5230\u7b2c\u4e00\u4e2a\u5339\u914d\u9879\u5c31\u505c\u6b62&#xff0c;\u8fd4\u56de\u5339\u914d\u5bf9\u8c61&#xff1b;\u627e\u4e0d\u5230\u8fd4\u56de None\u3002<\/p>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p>s <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;1python 123456python44&#034;<\/span><br \/>\nresult <span class=\"token operator\">&#061;<\/span> re<span class=\"token punctuation\">.<\/span>search<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;python&#034;<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># &lt;re.Match object; span&#061;(1, 7), match&#061;&#039;python&#039;&gt;<\/span><\/p>\n<h3>1.3 re.findall()&#xff1a;\u67e5\u627e\u5168\u90e8<\/h3>\n<p>\u5339\u914d\u6574\u4e2a\u5b57\u7b26\u4e32&#xff0c;\u627e\u51fa\u6240\u6709\u7b26\u5408\u89c4\u5219\u7684\u5185\u5bb9&#xff0c;\u8fd4\u56de\u5217\u8868&#xff1b;\u627e\u4e0d\u5230\u8fd4\u56de\u7a7a\u5217\u8868[]\u3002<\/p>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p>s <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;1python 123456python44&#034;<\/span><br \/>\nresult <span class=\"token operator\">&#061;<\/span> re<span class=\"token punctuation\">.<\/span>findall<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;python&#034;<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># [&#039;python&#039;, &#039;python&#039;]<\/span><\/p>\n<h3>1.4 re.sub()&#xff1a;\u66ff\u6362<\/h3>\n<p>\u5c06\u5b57\u7b26\u4e32\u4e2d\u5339\u914d\u5230\u7684\u5185\u5bb9\u66ff\u6362\u4e3a\u6307\u5b9a\u6587\u672c&#xff0c;\u8fd4\u56de\u66ff\u6362\u540e\u7684\u65b0\u5b57\u7b26\u4e32\u3002 \u8bed\u6cd5&#xff1a;re.sub(\u5339\u914d\u89c4\u5219, \u66ff\u6362\u5185\u5bb9, \u88ab\u5339\u914d\u5b57\u7b26\u4e32)<\/p>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p>s <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;python java python c&#043;&#043;&#034;<\/span><br \/>\nnew_s <span class=\"token operator\">&#061;<\/span> re<span class=\"token punctuation\">.<\/span>sub<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;python&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;Python&#034;<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>new_s<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># Python java Python c&#043;&#043;<\/span><\/p>\n<h2>\u4e8c\u3001\u5143\u5b57\u7b26\u5339\u914d\u89c4\u5219<\/h2>\n<p>\u5143\u5b57\u7b26\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u5177\u6709\u7279\u6b8a\u542b\u4e49\u7684\u5b57\u7b26&#xff0c;\u662f\u6b63\u5219\u7684\u6838\u5fc3\u8bed\u6cd5\u3002\u4e0b\u9762\u5206\u7c7b\u8bb2\u89e3\u5e38\u7528\u5143\u5b57\u7b26\u3002<\/p>\n<h3>2.1 \u5355\u5b57\u7b26\u5339\u914d<\/h3>\n<table>\n<tr>\u5143\u5b57\u7b26\u529f\u80fd\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>.<\/td>\n<td>\u5339\u914d\u4efb\u610f 1 \u4e2a\u5b57\u7b26&#xff08;\u9664\u4e86\u6362\u884c\u7b26\\\\n&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>[]<\/td>\n<td>\u5339\u914d\u62ec\u53f7\u5185\u5217\u4e3e\u7684\u4efb\u610f\u4e00\u4e2a\u5b57\u7b26&#xff0c;\u5982[a-z]\u5339\u914d\u5c0f\u5199\u5b57\u6bcd<\/td>\n<\/tr>\n<tr>\n<td>\\\\d<\/td>\n<td>\u5339\u914d\u6570\u5b57&#xff0c;\u7b49\u4ef7\u4e8e[0-9]<\/td>\n<\/tr>\n<tr>\n<td>\\\\D<\/td>\n<td>\u5339\u914d\u975e\u6570\u5b57<\/td>\n<\/tr>\n<tr>\n<td>\\\\s<\/td>\n<td>\u5339\u914d\u7a7a\u767d\u5b57\u7b26&#xff08;\u7a7a\u683c\u3001tab\u3001\u6362\u884c\u7b49&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\\\\S<\/td>\n<td>\u5339\u914d\u975e\u7a7a\u767d\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td>\\\\w<\/td>\n<td>\u5339\u914d\u5355\u8bcd\u5b57\u7b26&#xff08;\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e0b\u5212\u7ebf&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\\\\W<\/td>\n<td>\u5339\u914d\u975e\u5355\u8bcd\u5b57\u7b26<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f&#xff1a;\\\\d\u9ed8\u8ba4\u5339\u914d Unicode \u6570\u5b57&#xff0c;\u5982\u9700\u4e25\u683c\u5339\u914d 0-9&#xff0c;\u53ef\u52a0re.ASCII\u6807\u5fd7\u6216\u76f4\u63a5\u5199[0-9]\u3002<\/p>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p>s <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;python##&#064;&#064;python2!!  666###&#034;<\/span><br \/>\n<span class=\"token comment\"># \u627e\u51fa\u6240\u6709\u6570\u5b57<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>re<span class=\"token punctuation\">.<\/span>findall<span class=\"token punctuation\">(<\/span><span class=\"token string\">r&#034;\\\\d&#034;<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># [&#039;2&#039;, &#039;6&#039;, &#039;6&#039;, &#039;6&#039;]<\/span><br \/>\n<span class=\"token comment\"># \u627e\u51fa\u6240\u6709\u975e\u5355\u8bcd\u7279\u6b8a\u5b57\u7b26<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>re<span class=\"token punctuation\">.<\/span>findall<span class=\"token punctuation\">(<\/span><span class=\"token string\">r&#034;\\\\W&#034;<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token comment\"># [&#039;#&#039;, &#039;#&#039;, &#039;&#064;&#039;, &#039;&#064;&#039;, &#039;!&#039;, &#039;!&#039;, &#039; &#039;, &#039; &#039;, &#039;#&#039;, &#039;#&#039;, &#039;#&#039;]<\/span><br \/>\n<span class=\"token comment\"># \u627e\u51fa\u6240\u6709\u82f1\u6587\u5b57\u6bcd<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>re<span class=\"token punctuation\">.<\/span>findall<span class=\"token punctuation\">(<\/span><span class=\"token string\">r&#034;[a-zA-Z]&#034;<\/span><span class=\"token punctuation\">,<\/span> s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token comment\"># [&#039;p&#039;, &#039;y&#039;, &#039;t&#039;, &#039;h&#039;, &#039;o&#039;, &#039;n&#039;, &#039;p&#039;, &#039;y&#039;, &#039;t&#039;, &#039;h&#039;, &#039;o&#039;, &#039;n&#039;]<\/span><\/p>\n<h3>2.2 \u6570\u91cf\u5339\u914d<\/h3>\n<p>\u63a7\u5236\u524d\u9762\u7684\u5b57\u7b26\u51fa\u73b0\u7684\u6b21\u6570&#xff1a;<\/p>\n<table>\n<tr>\u5143\u5b57\u7b26\u529f\u80fd\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>*<\/td>\n<td>\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26\u51fa\u73b0 0 \u6b21\u6216\u591a\u6b21<\/td>\n<\/tr>\n<tr>\n<td>&#043;<\/td>\n<td>\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26\u51fa\u73b0 1 \u6b21\u6216\u591a\u6b21<\/td>\n<\/tr>\n<tr>\n<td>?<\/td>\n<td>\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26\u51fa\u73b0 0 \u6b21\u6216 1 \u6b21<\/td>\n<\/tr>\n<tr>\n<td>{m}<\/td>\n<td>\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26\u6070\u597d\u51fa\u73b0 m \u6b21<\/td>\n<\/tr>\n<tr>\n<td>{m,}<\/td>\n<td>\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26\u81f3\u5c11\u51fa\u73b0 m \u6b21<\/td>\n<\/tr>\n<tr>\n<td>{m,n}<\/td>\n<td>\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b26\u51fa\u73b0 m \u5230 n \u6b21<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8865\u5145&#xff1a;\u9ed8\u8ba4\u662f\u8d2a\u5a6a\u5339\u914d&#xff08;\u5c3d\u53ef\u80fd\u591a\u5339\u914d&#xff09;&#xff0c;\u5728\u91cf\u8bcd\u540e\u52a0?\u53d8\u4e3a\u975e\u8d2a\u5a6a\u5339\u914d&#xff08;\u5c3d\u53ef\u80fd\u5c11\u5339\u914d&#xff09;&#xff0c;\u5982*?\u3001&#043;?\u3001{m,n}?\u3002<\/p>\n<h3>2.3 \u8fb9\u754c\u5339\u914d<\/h3>\n<table>\n<tr>\u5143\u5b57\u7b26\u529f\u80fd\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>^<\/td>\n<td>\u5339\u914d\u5b57\u7b26\u4e32\u5f00\u5934<\/td>\n<\/tr>\n<tr>\n<td>$<\/td>\n<td>\u5339\u914d\u5b57\u7b26\u4e32\u7ed3\u5c3e<\/td>\n<\/tr>\n<tr>\n<td>\\\\b<\/td>\n<td>\u5339\u914d\u5355\u8bcd\u8fb9\u754c<\/td>\n<\/tr>\n<tr>\n<td>\\\\B<\/td>\n<td>\u5339\u914d\u975e\u5355\u8bcd\u8fb9\u754c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>2.4 \u5206\u7ec4\u4e0e\u9009\u62e9<\/h3>\n<table>\n<tr>\u5143\u5b57\u7b26\u529f\u80fd\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>|<\/td>\n<td>\u6216&#xff0c;\u5339\u914d\u5de6\u53f3\u4efb\u610f\u4e00\u4e2a\u8868\u8fbe\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>(&#8230;)<\/td>\n<td>\u5c06\u62ec\u53f7\u5185\u5185\u5bb9\u4f5c\u4e3a\u4e00\u4e2a\u5206\u7ec4&#xff0c;\u53ef\u63d0\u53d6\u5339\u914d\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>(?:&#8230;)<\/td>\n<td>\u975e\u6355\u83b7\u5206\u7ec4&#xff0c;\u53ea\u505a\u6574\u4f53\u5339\u914d&#xff0c;\u4e0d\u5355\u72ec\u4fdd\u5b58\u5206\u7ec4\u5185\u5bb9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>2.5 \u5173\u4e8er\u524d\u7f00<\/h3>\n<p>\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u7ecf\u5e38\u51fa\u73b0\\\\d\u3001\\\\s\u7b49\u8f6c\u4e49\u5b57\u7b26&#xff0c;\u5728\u5b57\u7b26\u4e32\u524d\u52a0r\u8868\u793a\u539f\u59cb\u5b57\u7b26\u4e32&#xff0c;\u53ef\u4ee5\u907f\u514d Python \u5b57\u7b26\u4e32\u8f6c\u4e49\u548c\u6b63\u5219\u8f6c\u4e49\u7684\u51b2\u7a81&#xff0c;\u5199\u6b63\u5219\u65f6\u5efa\u8bae\u7edf\u4e00\u52a0r\u524d\u7f00\u3002<\/p>\n<h2>\u4e09\u3001\u6848\u4f8b\u6f14\u793a<\/h2>\n<h3>\u6848\u4f8b 1&#xff1a;\u8d26\u53f7\u6821\u9a8c<\/h3>\n<p>\u8981\u6c42&#xff1a;\u53ea\u80fd\u7531\u5b57\u6bcd\u548c\u6570\u5b57\u7ec4\u6210&#xff0c;\u957f\u5ea6 6~10 \u4f4d<\/p>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p>account <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;aa3456789&#034;<\/span><br \/>\nrule <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">r&#034;^[a-zA-Z0-9]{6,10}$&#034;<\/span><br \/>\nresult <span class=\"token operator\">&#061;<\/span> re<span class=\"token punctuation\">.<\/span>findall<span class=\"token punctuation\">(<\/span>rule<span class=\"token punctuation\">,<\/span> account<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u5339\u914d\u6210\u529f\u8fd4\u56de[&#039;aa3456789&#039;]&#xff0c;\u5931\u8d25\u8fd4\u56de[]<\/span><\/p>\n<h3>\u6848\u4f8b 2&#xff1a;QQ \u53f7\u6821\u9a8c<\/h3>\n<p>\u8981\u6c42&#xff1a;\u7eaf\u6570\u5b57&#xff0c;\u957f\u5ea6 5-11 \u4f4d&#xff0c;\u7b2c\u4e00\u4f4d\u4e0d\u80fd\u4e3a 0<\/p>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p>qq <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;2929409481&#034;<\/span><br \/>\nrule <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">r&#034;^[1-9][0-9]{4,10}$&#034;<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>re<span class=\"token punctuation\">.<\/span>findall<span class=\"token punctuation\">(<\/span>rule<span class=\"token punctuation\">,<\/span> qq<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token comment\"># [&#039;2929409481&#039;]<\/span><\/p>\n<h3>\u6848\u4f8b 3&#xff1a;\u63d0\u53d6 URL \u94fe\u63a5<\/h3>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p>text <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;\u914d\u7f51\u9875\u5730\u5740ssshttps:\/\/sc.chinaz.com\/tupian\/index_1.html\u914d\u7f51\u9875\u5730\u5740&#034;<\/span><br \/>\nrule <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">r&#034;https?:\/\/(?:[a-zA-Z]|[0-9]|[$-_&#064;.&amp;&#043;]|[!*\\\\\\\\(\\\\\\\\)]|(?:%[0-9a-fA-F][0-9a-fA-F]))&#043;&#034;<\/span><br \/>\nurls <span class=\"token operator\">&#061;<\/span> re<span class=\"token punctuation\">.<\/span>findall<span class=\"token punctuation\">(<\/span>rule<span class=\"token punctuation\">,<\/span> text<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>urls<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># [&#039;https:\/\/sc.chinaz.com\/tupian\/index_1.html&#039;]<\/span><\/p>\n<h3>\u6848\u4f8b 4&#xff1a;\u624b\u673a\u53f7\u6821\u9a8c<\/h3>\n<p>\u8981\u6c42&#xff1a;11 \u4f4d\u6570\u5b57&#xff0c;1 \u5f00\u5934&#xff0c;\u7b2c\u4e8c\u4f4d 3-9<\/p>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p>phone <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;13812345678&#034;<\/span><br \/>\nrule <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">r&#034;^1[3-9]\\\\d{9}$&#034;<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>re<span class=\"token punctuation\">.<\/span><span class=\"token keyword\">match<\/span><span class=\"token punctuation\">(<\/span>rule<span class=\"token punctuation\">,<\/span> phone<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">is<\/span> <span class=\"token keyword\">not<\/span> <span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># True<\/span><\/p>\n<h2>\u56db\u3001\u8fdb\u9636\u4f18\u5316&#xff1a;\u9884\u7f16\u8bd1\u6b63\u5219<\/h2>\n<p>\u5982\u679c\u540c\u4e00\u4e2a\u6b63\u5219\u89c4\u5219\u9700\u8981\u591a\u6b21\u4f7f\u7528&#xff0c;\u7528re.compile()\u9884\u7f16\u8bd1&#xff0c;\u53ef\u4ee5\u63d0\u5347\u8fd0\u884c\u6548\u7387&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> re<\/p>\n<p><span class=\"token comment\"># \u9884\u7f16\u8bd1<\/span><br \/>\npattern <span class=\"token operator\">&#061;<\/span> re<span class=\"token punctuation\">.<\/span><span class=\"token builtin\">compile<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">r&#034;\\\\d&#043;&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u591a\u6b21\u4f7f\u7528<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>pattern<span class=\"token punctuation\">.<\/span>findall<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;abc123def456&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>pattern<span class=\"token punctuation\">.<\/span>findall<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;hello789world&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h2>\u4e94\u3001\u6613\u9519\u70b9\u603b\u7ed3<\/h2>\n<li>match \u548c search \u6df7\u6dc6&#xff1a;match \u53ea\u5339\u914d\u5f00\u5934&#xff0c;search \u5339\u914d\u6574\u4e2a\u5b57\u7b26\u4e32\u627e\u7b2c\u4e00\u4e2a<\/li>\n<li>\u5fd8\u8bb0\u52a0 r \u524d\u7f00&#xff1a;\u5bfc\u81f4\u8f6c\u4e49\u5b57\u7b26\u51b2\u7a81&#xff0c;\u5339\u914d\u7ed3\u679c\u4e0d\u7b26\u5408\u9884\u671f<\/li>\n<li>\u8d2a\u5a6a\u5339\u914d\u9677\u9631&#xff1a;\u9ed8\u8ba4\u8d2a\u5a6a\u5339\u914d\u4f1a\u5c3d\u53ef\u80fd\u591a\u5339\u914d&#xff0c;\u9700\u8981\u7cbe\u51c6\u5339\u914d\u65f6\u8bb0\u5f97\u52a0?\u8f6c\u4e3a\u975e\u8d2a\u5a6a<\/li>\n<li>^\u548c$\u7684\u4f7f\u7528&#xff1a;\u505a\u6574\u4f53\u6821\u9a8c\u65f6\u5fc5\u987b\u52a0\u5f00\u5934\u548c\u7ed3\u5c3e\u7b26&#xff0c;\u5426\u5219\u53ea\u8981\u5b57\u7b26\u4e32\u5305\u542b\u7b26\u5408\u89c4\u5219\u7684\u5185\u5bb9\u5c31\u4f1a\u5339\u914d\u6210\u529f<\/li>\n<li>\u5206\u7ec4\u63d0\u53d6&#xff1a;\u4f7f\u7528(&#8230;)\u5206\u7ec4\u540e&#xff0c;findall\u4f1a\u53ea\u8fd4\u56de\u5206\u7ec4\u5185\u5bb9&#xff0c;\u5982\u9700\u8fd4\u56de\u5b8c\u6574\u5339\u914d\u53ef\u4f7f\u7528\u975e\u6355\u83b7\u5206\u7ec4(?:&#8230;)<\/li>\n<h2>\u516d\u3001\u603b\u7ed3<\/h2>\n<ul>\n<li>\u57fa\u7840\u65b9\u6cd5&#xff1a;match\u5f00\u5934\u5339\u914d\u3001search\u627e\u7b2c\u4e00\u4e2a\u3001findall\u627e\u5168\u90e8\u3001sub\u66ff\u6362<\/li>\n<li>\u5143\u5b57\u7b26\u56db\u5927\u7c7b&#xff1a;\u5355\u5b57\u7b26\u3001\u6570\u91cf\u3001\u8fb9\u754c\u3001\u5206\u7ec4<\/li>\n<li>\u5b9e\u6218\u6838\u5fc3&#xff1a;\u642d\u914d^\u548c$\u505a\u683c\u5f0f\u6821\u9a8c&#xff0c;\u7528findall\u505a\u6570\u636e\u63d0\u53d6<\/li>\n<li>\u4f18\u5316\u6280\u5de7&#xff1a;\u9ad8\u9891\u4f7f\u7528\u7684\u6b63\u5219\u7528compile\u9884\u7f16\u8bd1&#xff0c;\u7edf\u4e00\u4f7f\u7528r\u524d\u7f00\u907f\u514d\u8f6c\u4e49\u95ee\u9898<\/li>\n<\/ul>\n<p>\u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u6cd5\u4e30\u5bcc&#xff0c;\u5165\u95e8\u9636\u6bb5\u5148\u638c\u63e1\u4ee5\u4e0a\u6838\u5fc3\u5185\u5bb9&#xff0c;\u540e\u7eed\u53ef\u4ee5\u5728\u5b9e\u9645\u573a\u666f\u4e2d\u9010\u6b65\u79ef\u7d2f\u66f4\u590d\u6742\u7684\u7528\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u57fa\u7840&#xff1a;re \u6a21\u5757\u4e09\u5927\u65b9\u6cd51.1 re.match()&#xff1a;\u5f00\u5934\u5339\u914d1.2 re.search()&#xff1a;\u67e5\u627e\u7b2c\u4e00\u4e2a1.3 re.findall()&#xff1a;\u67e5\u627e\u5168\u90e81.4 re.sub()&#xff1a;\u66ff\u6362\u4e8c\u3001\u5143\u5b57\u7b26\u5339\u914d\u89c4\u52192.1 \u5355\u5b57\u7b26\u5339\u914d2.2 \u6570\u91cf\u5339\u914d2.3 \u8fb9\u754c\u5339\u914d2.4 \u5206\u7ec4\u4e0e\u9009\u62e92.5 \u5173\u4e8er\u524d\u7f00\u4e09\u3001\u6848\u4f8b\u6f14\u793a\u6848\u4f8b 1&#xff1a;\u8d26\u53f7\u6821\u9a8c\u6848\u4f8b 2&#xff1a;QQ \u53f7\u6821\u9a8c\u6848\u4f8b 3&#xff1a;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,94],"topic":[],"class_list":["post-95402","post","type-post","status-publish","format-standard","hentry","category-server","tag-python","tag-94"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Python \u5165\u95e8\u3011Python \u6b63\u5219\u8868\u8fbe\u5f0f\u96f6\u57fa\u7840\u8bb2\u89e3\uff1a\u57fa\u7840\u8bed\u6cd5 + \u5143\u5b57\u7b26 + \u5e38\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/95402.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Python \u5165\u95e8\u3011Python \u6b63\u5219\u8868\u8fbe\u5f0f\u96f6\u57fa\u7840\u8bb2\u89e3\uff1a\u57fa\u7840\u8bed\u6cd5 + \u5143\u5b57\u7b26 + \u5e38\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u57fa\u7840&#xff1a;re \u6a21\u5757\u4e09\u5927\u65b9\u6cd51.1 re.match()&#xff1a;\u5f00\u5934\u5339\u914d1.2 re.search()&#xff1a;\u67e5\u627e\u7b2c\u4e00\u4e2a1.3 re.findall()&#xff1a;\u67e5\u627e\u5168\u90e81.4 re.sub()&#xff1a;\u66ff\u6362\u4e8c\u3001\u5143\u5b57\u7b26\u5339\u914d\u89c4\u52192.1 \u5355\u5b57\u7b26\u5339\u914d2.2 \u6570\u91cf\u5339\u914d2.3 \u8fb9\u754c\u5339\u914d2.4 \u5206\u7ec4\u4e0e\u9009\u62e92.5 \u5173\u4e8er\u524d\u7f00\u4e09\u3001\u6848\u4f8b\u6f14\u793a\u6848\u4f8b 1&#xff1a;\u8d26\u53f7\u6821\u9a8c\u6848\u4f8b 2&#xff1a;QQ \u53f7\u6821\u9a8c\u6848\u4f8b 3&#xff1a;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/95402.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-26T03:32:48+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/95402.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/95402.html\",\"name\":\"\u3010Python \u5165\u95e8\u3011Python \u6b63\u5219\u8868\u8fbe\u5f0f\u96f6\u57fa\u7840\u8bb2\u89e3\uff1a\u57fa\u7840\u8bed\u6cd5 + \u5143\u5b57\u7b26 + \u5e38\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-26T03:32:48+00:00\",\"dateModified\":\"2026-08-26T03:32:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/95402.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/95402.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/95402.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Python \u5165\u95e8\u3011Python \u6b63\u5219\u8868\u8fbe\u5f0f\u96f6\u57fa\u7840\u8bb2\u89e3\uff1a\u57fa\u7840\u8bed\u6cd5 + \u5143\u5b57\u7b26 + \u5e38\u7528\u6848\u4f8b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Python \u5165\u95e8\u3011Python \u6b63\u5219\u8868\u8fbe\u5f0f\u96f6\u57fa\u7840\u8bb2\u89e3\uff1a\u57fa\u7840\u8bed\u6cd5 + \u5143\u5b57\u7b26 + \u5e38\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/95402.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Python \u5165\u95e8\u3011Python \u6b63\u5219\u8868\u8fbe\u5f0f\u96f6\u57fa\u7840\u8bb2\u89e3\uff1a\u57fa\u7840\u8bed\u6cd5 + \u5143\u5b57\u7b26 + \u5e38\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u57fa\u7840&#xff1a;re \u6a21\u5757\u4e09\u5927\u65b9\u6cd51.1 re.match()&#xff1a;\u5f00\u5934\u5339\u914d1.2 re.search()&#xff1a;\u67e5\u627e\u7b2c\u4e00\u4e2a1.3 re.findall()&#xff1a;\u67e5\u627e\u5168\u90e81.4 re.sub()&#xff1a;\u66ff\u6362\u4e8c\u3001\u5143\u5b57\u7b26\u5339\u914d\u89c4\u52192.1 \u5355\u5b57\u7b26\u5339\u914d2.2 \u6570\u91cf\u5339\u914d2.3 \u8fb9\u754c\u5339\u914d2.4 \u5206\u7ec4\u4e0e\u9009\u62e92.5 \u5173\u4e8er\u524d\u7f00\u4e09\u3001\u6848\u4f8b\u6f14\u793a\u6848\u4f8b 1&#xff1a;\u8d26\u53f7\u6821\u9a8c\u6848\u4f8b 2&#xff1a;QQ \u53f7\u6821\u9a8c\u6848\u4f8b 3&#xff1a;","og_url":"https:\/\/www.wsisp.com\/helps\/95402.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-26T03:32:48+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/95402.html","url":"https:\/\/www.wsisp.com\/helps\/95402.html","name":"\u3010Python \u5165\u95e8\u3011Python \u6b63\u5219\u8868\u8fbe\u5f0f\u96f6\u57fa\u7840\u8bb2\u89e3\uff1a\u57fa\u7840\u8bed\u6cd5 + \u5143\u5b57\u7b26 + \u5e38\u7528\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-26T03:32:48+00:00","dateModified":"2026-08-26T03:32:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/95402.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/95402.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/95402.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Python \u5165\u95e8\u3011Python \u6b63\u5219\u8868\u8fbe\u5f0f\u96f6\u57fa\u7840\u8bb2\u89e3\uff1a\u57fa\u7840\u8bed\u6cd5 + \u5143\u5b57\u7b26 + \u5e38\u7528\u6848\u4f8b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/95402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=95402"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/95402\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=95402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=95402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=95402"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=95402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}