{"id":60133,"date":"2026-01-14T23:49:32","date_gmt":"2026-01-14T15:49:32","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/60133.html"},"modified":"2026-01-14T23:49:32","modified_gmt":"2026-01-14T15:49:32","slug":"python%e8%af%ad%e6%b3%95%e5%85%a5%e9%97%a8%e3%80%81%e5%9f%ba%e6%9c%ac%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e3%80%81%e7%a8%8b%e5%ba%8f%e6%8e%a7%e5%88%b6%e8%af%ad%e5%8f%a5%e4%b8%8e%e7%bb%84%e5%90%88","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/60133.html","title":{"rendered":"python\u8bed\u6cd5\u5165\u95e8\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5\u4e0e\u7ec4\u5408\u6570\u636e\u7c7b\u578b"},"content":{"rendered":"<h2>\u4e00\u3001\u8bed\u6cd5<\/h2>\n<p>\u4ee3\u7801\u6267\u884c\u662f\u4e25\u683c\u4ece\u4e0a\u5230\u4e0b\u7684\u987a\u5e8f\u200b\u200b&#xff0c;\u7f29\u8fdb\u89c4\u5219\u6781\u5176\u4e25\u683c\u200b\u200b&#xff0c;\u5f00\u5934\u7684\u7a7a\u683c\u6570\u91cf\u4e0d\u80fd\u968f\u610f\u589e\u51cf&#xff0c;\u56e0\u4e3a\u200b\u200b\u7a7a\u683c\u5728Python\u4e2d\u4ee3\u8868\u4ee3\u7801\u903b\u8f91\u5c42\u7ea7\u200b\u200b&#xff0c;\u591a\u4e00\u4e2a\u6216\u5c11\u4e00\u4e2a\u7a7a\u683c\u90fd\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u65e0\u6cd5\u8fd0\u884c\u3002\u200b<\/p>\n<h3>1.1\u8f93\u51fa\u51fd\u6570print()<\/h3>\n<p>print()\u8f93\u51fa\u51fd\u6570\u200b\u200b\u548c\u200b\u200binput()\u8f93\u5165\u51fd\u6570\u662f\u4e24\u4e2a\u6700\u57fa\u7840\u7684\u51fd\u6570\u200b\u200b\u200b\u200b\u3002\u8fd9\u4e24\u4e2a\u51fd\u6570\u5206\u522b\u8d1f\u8d23\u4fe1\u606f\u7684\u8f93\u51fa\u548c\u63a5\u6536&#xff0c;\u662f\u7f16\u7a0b\u4e2d\u6700\u5e38\u7528\u7684\u57fa\u7840\u529f\u80fd\u3002<\/p>\n<li>print\u51fd\u6570\u7684\u4e09\u79cd\u57fa\u7840\u7528\u6cd5\u200b\u200b&#xff1a;<\/li>\n<p style=\"text-align:center\">&#xff08;1&#xff09;\u200b\u200b\u5f53\u53c2\u6570\u662f\u5b57\u7b26\u4e32\u65f6\u200b\u200b&#xff0c;\u6bd4\u5982\u7528\u5355\u5f15\u53f7\u6216\u53cc\u5f15\u53f7\u5305\u88f9\u7684\u5185\u5bb9&#xff0c;print\u4f1a\u539f\u6837\u8f93\u51fa\u3002\u8fd9\u91cc\u8981\u7279\u522b\u6ce8\u610f&#xff0c;\u200b\u200b\u4ee3\u7801\u4e2d\u7684\u7b26\u53f7\u5fc5\u987b\u662f\u82f1\u6587\u683c\u5f0f\u200b\u200b&#xff0c;\u6bd4\u5982\u5f15\u53f7\u3001\u62ec\u53f7\u7b49&#xff0c;\u4e2d\u6587\u7b26\u53f7\u4f1a\u62a5\u9519\u3002<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154928-6967bb08322d1.png\" \/><\/p>\n<p>&#xff08;2&#xff09;\u200b\u200b\u53c2\u6570\u4e3a\u53d8\u91cf\u540d\u200b\u200b\u7684\u60c5\u51b5&#xff0c;\u6bd4\u5982a&#061;3\u3001b&#061;15\u3001c&#061;a&#043;b&#xff0c;\u6b64\u65f6print(c)\u4f1a\u8f93\u51fa\u53d8\u91cfc\u7684\u503c18\u3002print\u51fd\u6570\u4f1a\u5148\u8ba1\u7b97\u53d8\u91cf\u5185\u5bb9\u518d\u8f93\u51fa\u3002<\/p>\n<p>&#xff08;3&#xff09;\u53c2\u6570\u4e3a\u8868\u8fbe\u5f0f\u200b\u200b\u65f6&#xff0c;\u6bd4\u5982a&#043;b-7&#xff0c;print\u4f1a\u5148\u8ba1\u7b97\u8868\u8fbe\u5f0f\u7ed3\u679c&#xff08;\u8fd9\u91cc\u662f11&#xff09;\u518d\u8f93\u51fa\u3002\u200b\u200b\u6838\u5fc3\u89c4\u5f8b\u200b\u200b\u662f&#xff1a;print\u603b\u4f1a\u5148\u8ba1\u7b97\u62ec\u53f7\u5185\u7684\u5185\u5bb9&#xff08;\u65e0\u8bba\u662f\u53d8\u91cf\u3001\u8868\u8fbe\u5f0f\u8fd8\u662f\u5176\u4ed6&#xff09;&#xff0c;\u518d\u8f93\u51fa\u6700\u7ec8\u7ed3\u679c\u3002<\/p>\n<p>&#xff08;4&#xff09;\u53c2\u6570\u4e3a\u591a\u4e2a\u53c2\u6570\u65f6&#xff0c;\u53c2\u6570\u95f4\u4f1a\u200b\u200b\u81ea\u52a8\u6dfb\u52a0\u7a7a\u683c\u200b\u200b\u5206\u9694\u3002\u6bd4\u5982print(a, b)\u4f1a\u628a\u53d8\u91cfa\u548cb\u7684\u503c\u7528\u7a7a\u683c\u9694\u5f00\u8f93\u51fa\u3002<\/p>\n<p style=\"text-align:center\">&#xff08;5&#xff09;\u8f93\u51fa\u672b\u5c3e\u8bbe\u7f6e\u200b\u200bend\u53c2\u6570\u200b\u200b&#xff0c;\u5b83\u9ed8\u8ba4\u503c\u662f\\\\n&#xff08;\u6362\u884c\u7b26&#xff09;&#xff0c;\u6240\u4ee5\u6bcf\u6b21print\u8f93\u51fa\u540e\u4f1a\u81ea\u52a8\u6362\u884c\u3002\u5982\u679c\u60f3\u6539\u53d8\u8f93\u51fa\u540e\u7684\u884c\u4e3a&#xff0c;\u6bd4\u5982\u8ba9\u5185\u5bb9\u4e0d\u6362\u884c\u6216\u5728\u672b\u5c3e\u52a0\u5176\u4ed6\u5b57\u7b26&#xff0c;\u53ef\u4ee5\u4fee\u6539end\u53c2\u6570\u7684\u503c\u3002\u8fde\u63a5\u8f93\u51fa\u200b\u200b\u901a\u8fc7\u8bbe\u7f6eend&#061;&#039;##&#039;&#xff0c;\u53ef\u4ee5\u8ba9\u4e24\u4e2aprint\u8bed\u53e5\u7684\u8f93\u51fa\u7528&#034;##&#034;\u8fde\u63a5\u8d77\u6765&#xff1b;\u82e5\u8bbe\u4e3aend&#061;&#039;&#039;&#xff08;\u7a7a\u5b57\u7b26\u4e32&#xff09;&#xff0c;\u5219\u76f4\u63a5\u62fc\u63a5\u8f93\u51fa\u5185\u5bb9\u3002<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154928-6967bb08499f1.png\" \/><\/p>\n<\/p>\n<p style=\"text-align:center\">&#xff08;6&#xff09;\u53c2\u6570\u4e3a\u51fd\u6570&#xff1a;\u5148\u8ba1\u7b97\u51fd\u6570\u7684\u7ed3\u679c&#xff0c;\u518d\u5c06\u51fd\u6570\u7ed3\u679c\u8f93\u51fa\u3002\u5176\u4e2ddir(__builtins__)\u80fd\u5217\u51fa\u5f53\u524dPython\u73af\u5883\u4e2d\u6240\u6709\u53ef\u7528\u7684\u5185\u7f6e\u51fd\u6570\u3002<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154928-6967bb0863096.png\" \/><\/p>\n<h3>\u200b\u200b1.2\u8f93\u5165\u51fd\u6570input&#xff08;&#xff09;\u200b<\/h3>\n<p>\u4e0eprint\u51fd\u6570\u76f8\u53cd&#xff0c;\u662f\u7528\u6765\u63a5\u6536\u7528\u6237\u8f93\u5165\u4fe1\u606f\u7684\u3002\u6bd4\u5982\u9700\u8981\u83b7\u53d6\u7528\u6237\u6027\u522b\u3001\u5e74\u9f84\u7b49\u4fe1\u606f\u65f6\u5c31\u8981\u7528\u5230\u5b83\u3002input\u51fd\u6570\u7684\u57fa\u672c\u7528\u6cd5\u5f88\u7b80\u5355&#xff1a;\u76f4\u63a5\u5199input()&#xff0c;\u62ec\u53f7\u91cc\u53ef\u4ee5\u52a0\u4e0a\u63d0\u793a\u4fe1\u606f&#xff0c;\u6bd4\u5982input(&#034;\u8bf7\u8f93\u5165\u8d26\u53f7&#xff1a;&#034;)\u3002\u8fd9\u65f6\u7a0b\u5e8f\u4f1a\u6682\u505c&#xff0c;\u7b49\u5f85\u7528\u6237\u8f93\u5165\u5185\u5bb9\u3002\u200b\u200b\u63d0\u793a\u4fe1\u606f\u200b\u200b\u4f1a\u663e\u793a\u5728\u7ec8\u7aef\u4e0a\u5f15\u5bfc\u7528\u6237\u6b63\u786e\u8f93\u5165\u3002\u901a\u8fc7input()\u51fd\u6570\u83b7\u53d6\u7684\u7528\u6237\u8f93\u5165&#xff0c;\u200b\u200b\u65e0\u8bba\u8f93\u5165\u6570\u5b57\u8fd8\u662f\u6587\u5b57&#xff0c;\u8fd4\u56de\u7684\u90fd\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\u200b\u200b\u3002<\/p>\n<h3>1.3\u5143\u7d20\u7684\u547d\u540d<\/h3>\n<li>\u53d8\u91cf\u540d\u7684\u547d\u540d\u9700\u8981\u9075\u5b88\u200b\u200b\u56db\u6761\u89c4\u5219\u200b\u200b\u3002<\/li>\n<p>&#xff08;1&#xff09;\u53ea\u80fd\u7528\u5b57\u6bcd&#xff08;a-z\/A-Z&#xff09;\u3001\u6570\u5b57&#xff08;0-9&#xff09;\u3001\u4e0b\u5212\u7ebf\u6216\u6c49\u5b57\u200b\u200b\u6765\u7ec4\u5408\u547d\u540d\u3002\u7279\u522b\u6ce8\u610f&#xff0c;\u50cf&#064;\u3001$\u3001%\u8fd9\u4e9b\u7b26\u53f7\u90fd\u662f\u200b\u200b\u7edd\u5bf9\u4e0d\u5141\u8bb8\u200b\u200b\u51fa\u73b0\u7684&#xff0c;\u7cfb\u7edf\u4f1a\u76f4\u63a5\u62a5\u9519\u63d0\u793a\u8bed\u6cd5\u9519\u8bef\u3002<\/p>\n<p>&#xff08;2&#xff09;\u200b\u200b\u53d8\u91cf\u540d\u4e0d\u80fd\u4ee5\u6570\u5b57\u5f00\u5934\u200b\u200b&#xff0c;\u6bd4\u5982&#034;3myname&#034;\u4f1a\u76f4\u63a5\u62a5\u9519\u3002\u200b\u200b<\/p>\n<p>&#xff08;3&#xff09;\u53d8\u91cf\u540d\u4e0d\u80fd\u548c\u4fdd\u7559\u5b57\u76f8\u540c&#xff0c;\u4fdd\u7559\u5b57\u662fpython\u5185\u5df2\u88ab\u4f7f\u7528\u7684\u5177\u6709\u7279\u5b9a\u529f\u80fd\u7684\u540d\u79f0,\u5982false\u3001if\u7b49\u3002\u6bd4\u5982\u5199&#034;False&#061;11&#034;\u5c31\u4f1a\u62a5\u9519\u3002<\/p>\n<p style=\"text-align:center\">&#xff08;4&#xff09;\u53d8\u91cf\u540d\u6700\u597d\u522b\u7528Python\u5185\u7f6e\u51fd\u6570\u540d\u200b\u200b&#xff08;\u6bd4\u5982list\/dict\u7b49&#xff09;&#xff0c;\u867d\u7136\u8bed\u6cd5\u5141\u8bb8&#xff0c;\u4f46\u5bb9\u6613\u5f15\u53d1\u6df7\u6dc6\u3002\u4f8b\u5982\u200b\u200b\u628a\u5185\u7f6e\u51fd\u6570\u540d&#xff08;\u5982print&#xff09;\u7528\u4f5c\u53d8\u91cf\u540d\u662f\u5141\u8bb8\u7684\u200b\u200b&#xff0c;\u4f46\u8fd9\u6837\u505a\u4f1a\u200b\u200b\u8986\u76d6\u539f\u6709\u51fd\u6570\u529f\u80fd\u200b\u200b\u3002\u6bd4\u5982\u5148\u5199print&#061;10&#xff0c;\u518d\u5199print(1&#043;1)\u5c31\u4f1a\u62a5\u9519\u2014\u2014\u56e0\u4e3a\u6b64\u65f6print\u5df2\u7ecf\u53d8\u6210\u666e\u901a\u53d8\u91cf&#xff0c;\u4e0d\u518d\u662f\u51fd\u6570\u4e86\u3002\u867d\u7136Python\u5141\u8bb8\u8fd9\u79cd\u64cd\u4f5c&#xff0c;\u4f46\u4f1a\u200b\u200b\u5bfc\u81f4\u5185\u7f6e\u51fd\u6570\u5931\u6548\u200b\u200b&#xff0c;\u6240\u4ee5\u7f16\u7a0b\u65f6\u8981\u200b\u200b\u907f\u514d\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u540d\u4f5c\u4e3a\u53d8\u91cf\u540d\u200b\u200b\u3002\u8fd9\u79cd\u9519\u8bef\u4e0d\u4f1a\u7acb\u5373\u663e\u73b0&#xff0c;\u800c\u662f\u5728\u540e\u7eed\u8c03\u7528\u88ab\u8986\u76d6\u7684\u51fd\u6570\u65f6\u624d\u66b4\u9732&#xff0c;\u5c5e\u4e8e\u5178\u578b\u7684&#034;\u57cb\u96f7&#034;\u884c\u4e3a\u3002<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154928-6967bb08bb1fe.png\" \/><\/p>\n<h3>1.4\u8d4b\u503c\u8bed\u53e5<\/h3>\n<p>&#xff08;1&#xff09;Python\u4e25\u683c\u533a\u5206\u5927\u5c0f\u5199&#xff0c;\u6240\u4ee5\u5927\u5199\u7684ELSE\u548c\u5c0f\u5199\u7684else\u662f\u4e0d\u540c\u7684\u6807\u8bc6\u7b26&#xff0c;\u4e0d\u4f1a\u51b2\u7a81\u3002\u200b\u200b\u53d8\u91cf\u540d\u4e0d\u80fd\u4e0e\u5173\u952e\u5b57\u5b8c\u5168\u76f8\u540c\u200b\u200b&#xff0c;\u4f46\u901a\u8fc7\u5927\u5c0f\u5199\u53d8\u5316\u53ef\u4ee5\u7ed5\u8fc7\u8fd9\u4e00\u9650\u5236\u3002<\/p>\n<p>&#xff08;2&#xff09;\u5173\u4e8e\u53d8\u91cf\u503c\u7684\u8986\u76d6\u200b\u200b&#xff1a;\u5f53\u7ed9\u53d8\u91cf\u5148\u540e\u8d4b\u4e0d\u540c\u7684\u503c\u65f6&#xff0c;\u540e\u8d4b\u7684\u503c\u4f1a\u5b8c\u5168\u8986\u76d6\u4e4b\u524d\u7684\u503c&#xff0c;\u5c31\u50cf\u5185\u5b58\u4e2d\u7684\u5b58\u50a8\u7a7a\u95f4\u88ab\u65b0\u5185\u5bb9\u66ff\u6362\u4e00\u6837\u3002<\/p>\n<p>&#xff08;3&#xff09;\u200b\u200b\u591a\u91cd\u8d4b\u503c\u200b\u200b\u7684\u7528\u6cd5&#xff1a;\u53ef\u4ee5\u7528a,b,c,d &#061; 10,12,13,15\u8fd9\u6837\u7684\u5f62\u5f0f&#xff0c;\u200b\u200b\u540c\u65f6\u7ed9\u591a\u4e2a\u53d8\u91cf\u8d4b\u503c\u200b\u200b&#xff0c;\u6570\u503c\u4f1a\u6309\u987a\u5e8f\u5bf9\u5e94\u5206\u914d\u7ed9\u5404\u4e2a\u53d8\u91cf\u3002<\/p>\n<h3>\u4e8c\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b<\/h3>\n<p>\u200b\u200b\u6bcf\u79cd\u6570\u636e\u7c7b\u578b\u90fd\u6709\u4e13\u5c5e\u7684\u64cd\u4f5c\u65b9\u6cd5\u200b\u200b&#xff0c;\u6bd4\u5982\u6570\u503c\u578b\u64c5\u957f\u52a0\u51cf\u4e58\u9664&#xff0c;\u5b57\u7b26\u4e32\u578b\u4e13\u7cbe\u8fde\u63a5\u548c\u5207\u7247\u64cd\u4f5c&#xff0c;\u800c\u77e9\u9635\u5219\u4fa7\u91cd\u6c42\u9006\u7b49\u8fd0\u7b97\u3002<\/p>\n<p>\u200b\u200b\u57fa\u672c\u6570\u636e\u7c7b\u578b\u5c31\u4e24\u79cd\u200b\u200b&#xff1a;\u200b\u200b\u6570\u503c\u7c7b\u578b\u200b\u200b\u548c\u200b\u200b\u5b57\u7b26\u4e32\u7c7b\u578b\u200b\u200b\u3002<\/p>\n<h4>2.1\u6570\u503c\u578b<\/h4>\n<p>1&#xff09;\u200b\u200b\u6574\u578b\u200b\u200b&#xff08;\u5982123&#xff09;&#xff1b;<\/p>\n<p>2&#xff09;\u200b\u200b\u6d6e\u70b9\u578b\u200b\u200b&#xff08;\u5e26\u5c0f\u6570\u70b9\u7684\u6570&#xff09;&#xff1b;<\/p>\n<p>3&#xff09;\u590d\u6570&#xff08;AI\u9886\u57df\u5f88\u5c11\u7528&#xff0c;\u4e3b\u8981\u5728\u673a\u68b0\/\u7535\u5b66\u7b49\u9886\u57df&#xff09;\u3002\u91cd\u70b9\u638c\u63e1\u524d\u4e24\u79cd\u5c31\u884c\u3002<\/p>\n<p>\u6574\u578b\u7684\u8fd0\u7b97\u5f88\u76f4\u89c2&#xff0c;\u652f\u6301\u200b\u200b\u52a0\u51cf\u4e58\u9664\u3001\u6574\u9664\u3001\u53d6\u4f59\u3001\u5e42\u8fd0\u7b97\u200b\u200b\u7b49\u57fa\u7840\u64cd\u4f5c\u3002\u5c31\u50cf\u5c0f\u5b66\u6570\u5b66\u91cc\u7684\u6574\u6570\u8ba1\u7b97&#xff0c;\u53ea\u662f\u73b0\u5728\u8981\u7528\u4ee3\u7801\u8868\u8fbe\u51fa\u6765\u3002<\/p>\n<p>\u589e\u5f3a\u8d4b\u503c\u8fd0\u7b97\u7b26\u200b\u200b\u662f\u57fa\u7840\u8fd0\u7b97\u7b26\u548c\u8d4b\u503c\u8bed\u53e5\u7684\u7ed3\u5408\u4f53\u3002\u6bd4\u5982a &#043;&#061; 3\u5b8c\u5168\u7b49\u4ef7\u4e8ea &#061; a &#043; 3&#xff0c;\u8fd9\u79cd\u5199\u6cd5\u4e0d\u4ec5\u66f4\u7b80\u6d01&#xff0c;\u8fd8\u80fd\u63d0\u9ad8\u4ee3\u7801\u6548\u7387\u3002\u5e38\u89c1\u7684\u589e\u5f3a\u8d4b\u503c\u8fd0\u7b97\u7b26\u5305\u62ec&#043;&#061;\u3001-&#061;\u3001*&#061;\u3001\/&#061;\u3001\/\/&#061;\u3001%&#061;\u548c\u200b**\u200b&#061;\u3002<\/p>\n<h4>2.2\u5b57\u7b26\u4e32<\/h4>\n<p>\u5b57\u7b26\u4e32\u7d22\u5f15&#xff1a;\u4ece\u5de6\u5f80\u53f3\u4ece0\u5f00\u59cb\u8ba1\u6570&#xff0c;\u4ece\u53f3\u5f80\u5de6\u662f\u4ece-1\u5f00\u59cb\u8ba1\u6570\u3002\u7528\u7d22\u5f15\u53ef\u4ee5\u83b7\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26&#xff0c;\u5982a&#061;&#039;python&#039;,a[2]&#061;&#039;t&#039;\u3002\u83b7\u53d6\u591a\u4e2a\u5b57\u7b26\u5207\u7247&#xff0c;\u8981\u4f7f\u7528\u4e24\u4e2a\u53c2\u6570\u3002\u5982a[2:5]&#061;&#039;tho&#039;&#xff0c;\u5207\u7247\u53ea\u5305\u542b\u5de6\u8fb9\u7684\u7d22\u5f15\u7684\u5b57\u7b26&#xff0c;\u4e0d\u5305\u542b\u53f3\u8fb9\u7d22\u5f15\u3002<\/p>\n<p>\u5176\u5b9e\u4f7f\u7528\u4e24\u4e2a\u53c2\u6570\u5305\u542b\u4e86\u7b2c\u4e09\u4e2a\u53c2\u6570&#xff0c;\u53ea\u4e0d\u8fc7\u9ed8\u8ba4\u6b65\u957f&#xff08;\u7b2c\u4e09\u4e2a\u53c2\u6570&#xff09;\u4e3a1\u200b\u200b\u3002\u5f53\u5c1d\u8bd5\u7528[-1:-6]\u53cd\u5411\u5207\u7247\u65f6&#xff0c;\u7531\u4e8e\u9ed8\u8ba4\u6b65\u957f\u662f1&#xff08;\u4ece\u5de6\u5f80\u53f3&#xff09;&#xff0c;\u5bfc\u81f4\u65e0\u6cd5\u83b7\u53d6\u6709\u6548\u7ed3\u679c\u3002\u200b\u200b\u89e3\u51b3\u65b9\u6cd5\u200b\u200b\u662f\u663e\u5f0f\u8bbe\u7f6e\u6b65\u957f\u4e3a-1&#xff0c;\u5373\u5199\u6210[-1:-6:-1]&#xff0c;\u8fd9\u6837\u5c31\u80fd\u5b9e\u73b0\u4ece\u53f3\u5f80\u5de6\u7684\u5207\u7247\u3002<\/p>\n<p>[\u8d77\u59cb:\u7ed3\u675f:\u6b65\u957f]&#xff0c;\u5176\u4e2d\u200b\u200b\u6b65\u957f\u51b3\u5b9a\u4e86\u5207\u7247\u65b9\u5411\u200b\u200b&#xff0c;\u6b63\u6570\u4ece\u5de6\u5f80\u53f3&#xff0c;\u8d1f\u6570\u4ece\u53f3\u5f80\u5de6\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154928-6967bb08e430a.png\" \/>\u00a0\u200b\u200b\u5b57\u7b26\u4e32\u64cd\u4f5c\u200b&#xff1a;\u8fde\u63a5\u7528\u7b80\u5355\u7684&#xff08;&#043;&#xff09;\u5c31\u53ef\u4ee5\u8fde\u63a5\u4e24\u4e2a\u5b57\u7b26\u4e32&#xff0c;\u5982a&#061;&#039;python&#039;&#043;&#039;\u4eba\u5de5\u667a\u80fd&#039;\u3002\u5b57\u7b26\u4e32\u590d\u5236\u53ef\u4ee5\u7528&#xff08;*&#xff09;\u6765\u89e3\u51b3&#xff0c;\u5982a&#061;&#039;python&#039;*\u500d\u6570<\/p>\n<p>\u5b57\u7b26\u4e32\u51fd\u6570&#xff1a;len&#xff08;\u53c2\u6570&#xff09;\u7528\u6765\u83b7\u53d6\u5b57\u7b26\u4e32\u957f\u5ea6&#xff0c;\u5982len(a)\u3002<\/p>\n<p>\u5b57\u7b26\u4e32\u65b9\u6cd5&#xff1a;<\/p>\n<p>&#xff08;1&#xff09;count()\u65b9\u6cd5\u200b\u200b&#xff1a;\u7528\u6765\u7edf\u8ba1\u5b57\u7b26\u4e32\u4e2d\u67d0\u4e2a\u5b50\u4e32\u51fa\u73b0\u7684\u6b21\u6570\u3002\u6bd4\u5982\u4ee3\u7801a.count(&#034;3500&#034;)\u4f1a\u5728\u5b57\u7b26\u4e32a\u4e2d\u67e5\u627e&#034;3500&#034;\u51fa\u73b0\u7684\u6b21\u6570&#xff0c;\u793a\u4f8b\u4e2d\u8fd4\u56de\u7ed3\u679c\u662f3&#xff0c;\u8bf4\u660e&#034;3500&#034;\u51fa\u73b0\u4e86\u4e09\u6b21\u3002<\/p>\n<p>&#xff08;2&#xff09;replace()\u65b9\u6cd5\u200b\u200b&#xff1a;\u7528\u4e8e\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u5185\u5bb9&#xff0c;\u53c2\u6570\u4e00\u662f\u8981\u88ab\u66ff\u6362\u7684\u5b50\u4e32&#xff0c;\u53c2\u6570\u4e8c\u662f\u65b0\u5185\u5bb9\u3002\u6bd4\u5982a.replace(&#034;3500&#034;,&#034;4000&#034;)\u4f1a\u628a\u6240\u6709&#034;3500&#034;\u66ff\u6362\u6210&#034;4000&#034;\u3002<\/p>\n<p>&#xff08;3&#xff09;\u200b\u200bstrip()\u65b9\u6cd5\u200b\u200b&#xff1a;\u4e13\u95e8\u5904\u7406\u5b57\u7b26\u4e32\u200b\u200b\u5f00\u5934\u548c\u7ed3\u5c3e\u200b\u200b\u7684\u5b57\u7b26&#xff0c;\u6bd4\u5982\u53bb\u6389\u5f00\u5934\u548c\u7ed3\u5c3e\u7684&#034;#&#034;\u53f7\u3002strip\u200b\u200b\u53ea\u5904\u7406\u9996\u5c3e\u5b57\u7b26\u200b\u200b&#xff0c;\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u95f4\u6709\u76f8\u540c\u5b57\u7b26\u4e0d\u4f1a\u88ab\u5220\u9664\u3002\u53e6\u5916&#xff0c;\u5b57\u7b26\u4e32\u672b\u5c3e\u7684\u7a7a\u683c\u4e5f\u4f1a\u88abstrip\u9ed8\u8ba4\u6e05\u9664\u3002\u200b\u200b\u5e26\u53c2\u6570\u65f6\u200b\u200b\u4f1a\u5220\u9664\u5b57\u7b26\u4e32\u5f00\u5934\u6307\u5b9a\u7684\u5185\u5bb9&#xff0c;\u200b\u200b\u4e0d\u5e26\u53c2\u6570\u200b\u200b\u5219\u9ed8\u8ba4\u5220\u9664\u9996\u5c3e\u7684\u7a7a\u683c\u3001\u6362\u884c\u7b26\u548c\u5236\u8868\u7b26\u7b49\u7a7a\u767d\u5b57\u7b26\u3002<\/p>\n<p>&#xff08;4&#xff09;split()&#xff1a;\u80fd\u200b\u200b\u6309\u6307\u5b9a\u5206\u9694\u7b26\u200b\u200b\u628a\u5b57\u7b26\u4e32\u62c6\u5206\u6210\u5217\u8868\u3002\u6bd4\u5982\u7528&#034;#&#034;\u5206\u9694\u5b57\u7b26\u4e32&#034;a#b#c&#034;&#xff0c;\u5c31\u4f1a\u5f97\u5230[&#039;a&#039;,&#039;b&#039;,&#039;c&#039;]\u8fd9\u4e2a\u5217\u8868\u3002<\/p>\n<p>&#xff08;5&#xff09;join()\u65b9\u6cd5&#xff1a;\u4f1a\u5728\u200b\u200b\u6bcf\u4e2a\u5b57\u7b26\u4e4b\u95f4\u63d2\u5165\u6307\u5b9a\u5b57\u7b26\u4e32\u200b\u200b\u3002\u6bd4\u5982\u7528&#034;-&#034;\u8fde\u63a5\u5217\u8868\u5143\u7d20&#xff0c;\u5c31\u80fd\u628a[&#039;a&#039;,&#039;b&#039;]\u53d8\u6210&#034;a-b&#034;\u3002\u8fd9\u4e9b\u65b9\u6cd5\u7ec4\u5408\u4f7f\u7528\u53ef\u4ee5\u7075\u6d3b\u5904\u7406\u5404\u79cd\u5b57\u7b26\u4e32\u64cd\u4f5c\u9700\u6c42\u3002<\/p>\n<p>\u200b\u200b&#xff08;6&#xff09;format\u65b9\u6cd5\u200b\u200b&#xff1a;&#034;\u5b57\u7b26{}\u5b57\u7b26{}&#8230;&#034;.format(\u53c2\u65701&#xff0c;\u53c2\u65702)\u200b\u200b<\/p>\n<p>\u5e26\u82b1\u62ec\u53f7\u7684\u5f15\u53f7\u5185\u5bb9\u4ecd\u662f\u5b57\u7b26\u4e32\u200b\u200b&#xff0c;\u4e0d\u662f\u5b57\u5178\u3002\u8fd9\u4e9b\u82b1\u62ec\u53f7\u662f&#034;\u69fd\u4f4d&#034;&#xff0c;\u4f1a\u88abformat()\u65b9\u6cd5\u7684\u53c2\u6570\u4f9d\u6b21\u586b\u5145\u3002\u6bd4\u5982\u7b2c\u4e00\u4e2a\u53c2\u6570\u4f1a\u66ff\u6362\u7b2c\u4e00\u4e2a\u82b1\u62ec\u53f7&#xff0c;\u7b2c\u4e8c\u4e2a\u53c2\u6570\u66ff\u6362\u7b2c\u4e8c\u4e2a&#xff0c;\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n<p>\u200b\u200b\u8f6c\u4e49\u5b57\u7b26\u200b\u200b&#xff1a;\u5c31\u662f\u90a3\u4e9b\u4f1a\u6539\u53d8\u539f\u672c\u542b\u4e49\u7684\u7279\u6b8a\u5b57\u7b26&#xff0c;\u6bd4\u5982\u952e\u76d8\u4e0a\u7684\u5236\u8868\u7b26&#xff08;Tab\u952e&#xff09;\u3001\u6362\u884c\u7b26\u3001\u5f15\u53f7\u7b49\u3002\u8fd9\u4e9b\u5b57\u7b26\u5728\u5b57\u7b26\u4e32\u4e2d\u65e0\u6cd5\u76f4\u63a5\u663e\u793a&#xff0c;\u9700\u8981\u7528\u53cd\u659c\u6760&#xff08;\\\\&#xff09;\u52a0\u7279\u5b9a\u5b57\u6bcd\u6765\u8868\u793a\u3002\u6bd4\u5982&#034;\\\\n&#034;\u4ee3\u8868\u6362\u884c&#xff0c;&#034;\\\\t&#034;\u4ee3\u8868\u5236\u8868\u7b26&#xff08;\u76f8\u5f53\u4e8e\u591a\u4e2a\u7a7a\u683c&#xff09;\u3002\u200b\u200b\u5728\u6587\u4ef6\u8def\u5f84\u4e2d\u4f7f\u7528\u53cd\u659c\u6760\u65f6\u8981\u5c0f\u5fc3\u200b\u200b&#xff0c;\u56e0\u4e3a\u50cf&#034;\\\\U&#034;\u8fd9\u6837\u7684\u7ec4\u5408\u4f1a\u88ab\u5f53\u4f5c\u8f6c\u4e49\u5b57\u7b26\u5904\u7406&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u8def\u5f84\u9519\u8bef&#xff0c;\u56e0\u6b64\u8981\u5728\u8def\u5f84\u524d\u52a0\u4e0ar\u8868\u793a\u8def\u5f84\u3002<\/p>\n<h4>2.3\u200b\u200b\u6570\u636e\u7c7b\u578b\u68c0\u6d4b\u200b\u200b<\/h4>\n<p>\u5904\u7406\u6570\u636e\u524d\u8981\u5148\u660e\u786e\u7c7b\u578b&#xff0c;\u7528type()\u51fd\u6570\u53ef\u4ee5\u5feb\u901f\u5224\u65ad\u3002\u6bd4\u5982\u5b57\u7b26\u4e32\u4f1a\u8fd4\u56declass &#039;str&#039;&#xff0c;\u6574\u6570\u8fd4\u56declass &#039;int&#039;&#xff0c;\u6d6e\u70b9\u6570\u5219\u662fclass &#039;float&#039;\u3002<\/p>\n<p>\u200b\u200b\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362&#xff1a;\u5e38\u7528\u7684\u8f6c\u6362\u51fd\u6570\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u200b\u200bint()\u200b\u200b&#xff1a;\u628a\u6570\u636e\u8f6c\u4e3a\u6574\u6570&#xff08;\u5982\u5b57\u7b26\u4e32&#034;31415&#034;\u2192\u6574\u657031415&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u200b\u200bfloat()\u200b\u200b&#xff1a;\u8f6c\u4e3a\u6d6e\u70b9\u6570<\/li>\n<\/ul>\n<ul>\n<li>\u200b\u200bstr()\u200b\u200b&#xff1a;\u8f6c\u4e3a\u5b57\u7b26\u4e32<\/li>\n<\/ul>\n<p>\u200b\u200b\u5b57\u7b26\u4e32\u7c7b\u578b\u8f6c\u6362\u200b\u200b\u6709\u4e2a\u9700\u8981\u6ce8\u610f\u7684\u70b9&#xff1a;\u5982\u679c\u4e00\u4e2a\u5b57\u7b26\u4e32\u770b\u8d77\u6765\u50cf\u6d6e\u70b9\u6570&#xff08;\u6bd4\u5982&#034;3.14&#034;&#xff09;&#xff0c;\u4f60\u4e0d\u80fd\u76f4\u63a5\u628a\u5b83\u8f6c\u6210\u6574\u6570(int)\u3002\u200b\u200b\u5fc5\u987b\u5206\u4e24\u6b65\u8d70\u200b\u200b&#xff1a;\u5148\u8f6c\u6210\u6d6e\u70b9\u6570(float)&#xff0c;\u518d\u8f6c\u6210\u6574\u6570\u3002<\/p>\n<p>\u200b\u200b\u591a\u884c\u5b57\u7b26\u4e32\u5904\u7406\u200b\u200b&#xff1a;\u5f53\u6587\u672c\u5305\u542b\u591a\u4e2a\u6bb5\u843d\u65f6&#xff0c;\u76f4\u63a5\u5199\u6210\u5b57\u7b26\u4e32\u53ef\u80fd\u4f1a\u9047\u5230\u683c\u5f0f\u95ee\u9898\u3002\u5c31\u50cf\u4f60\u770b\u5230\u7684&#xff0c;\u989c\u8272\u663e\u793a\u90fd\u4e0d\u5bf9&#xff0c;\u8fd9\u8bf4\u660e\u7cfb\u7edf\u6ca1\u6b63\u786e\u8bc6\u522b\u8fd9\u79cd\u591a\u884c\u7ed3\u6784\u3002\u9700\u8981\u7279\u6b8a\u5904\u7406\u624d\u80fd\u4fdd\u6301\u539f\u6709\u6bb5\u843d\u683c\u5f0f\u3002\u5355\u5f15\u53f7\u6216\u53cc\u5f15\u53f7\u200b\u200b\u53ea\u80fd\u5305\u88f9\u5355\u884c\u5b57\u7b26\u4e32&#xff0c;\u9047\u5230\u591a\u884c\u5185\u5bb9\u65f6\u5c31\u4f1a\u5931\u6548\u3002\u8fd9\u65f6\u5019\u5e94\u8be5\u6539\u7528\u200b\u200b\u4e09\u5f15\u53f7&#xff08;\u4e09\u4e2a\u5355\u5f15\u53f7\u6216\u53cc\u5f15\u53f7&#xff09;\u200b\u200b\u6765\u5305\u88f9\u591a\u884c\u5b57\u7b26\u4e32&#xff0c;\u8fd9\u6837\u5c31\u80fd\u6b63\u786e\u8bc6\u522b\u6362\u884c\u4f4d\u7f6e\u3002\u6ce8\u91ca\u662f\u5b8c\u5168\u4e0d\u4f1a\u88ab\u6267\u884c\u7684\u8bf4\u660e\u6587\u5b57&#xff0c;\u800c\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32\u662f\u771f\u5b9e\u5b58\u5728\u7684\u5b57\u7b26\u4e32\u5bf9\u8c61&#xff0c;\u53ea\u662f\u6ca1\u88ab\u4f7f\u7528\u800c\u5df2\u3002\u5f53\u9047\u5230\u7279\u522b\u957f\u7684\u4ee3\u7801\u884c\u65f6&#xff0c;\u53ef\u4ee5\u7528\u200b\u200b\u53cd\u659c\u6760&#xff08;\\\\&#xff09;\u200b\u200b\u6765\u6362\u884c\u62c6\u5206&#xff0c;\u8fd9\u6837\u65e2\u4fdd\u6301\u4ee3\u7801\u529f\u80fd\u4e0d\u53d8&#xff0c;\u53c8\u80fd\u63d0\u5347\u53ef\u8bfb\u6027\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154929-6967bb0909b07.png\" \/><\/p>\n<h2>\u4e09\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5<\/h2>\n<h3>3.1\u6761\u4ef6\u5224\u65ad\u8bed\u53e5\u200b\u200b<\/h3>\n<p>&#xff08;1&#xff09;\u200b\u200bif\u8bed\u53e5:\u200b\u200b\u7f29\u8fdb\u975e\u5e38\u91cd\u8981\u200b\u200b&#xff0c;\u901a\u5e38\u7528\u56db\u4e2a\u7a7a\u683c\u6765\u8868\u793a\u4ee3\u7801\u5757&#xff0c;\u7f29\u8fdb\u7684\u4ee3\u7801\u90fd\u5c5e\u4e8eif\u8bed\u53e5\u7684\u6267\u884c\u90e8\u5206\u3002\u200b\u200b\u7f29\u8fdb\u51b3\u5b9a\u4e86\u4ee3\u7801\u7684\u903b\u8f91\u7ed3\u6784\u200b\u200b&#xff0c;\u591a\u884c\u4ee3\u7801\u7684\u7f29\u8fdb\u8868\u793a\u5b83\u4eec\u90fd\u5c5e\u4e8e\u540c\u4e00\u4e2a\u6761\u4ef6\u5224\u65ad\u5757\u3002<\/p>\n<p>\u200b\u200b\u6761\u4ef6\u5224\u65ad\u200b\u200b\u6709\u4e03\u79cd\u5e38\u89c1\u5f62\u5f0f&#xff0c;\u6bd4\u5982\u7528\u200b\u200b\u53cc\u7b49\u53f7&#xff08;&#061;&#061;&#xff09;\u5224\u65ad\u662f\u5426\u76f8\u7b49\u200b\u200b&#xff0c;\u8fd4\u56deTrue\u6216False\u3002\u8fd8\u6709\u5927\u4e8e&#xff08;&gt;&#xff09;\u3001\u5927\u4e8e\u7b49\u4e8e&#xff08;&gt;&#061;&#xff09;\u7b49\u6bd4\u8f83\u8fd0\u7b97\u7b26\u3002<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154929-6967bb091a192.png\" \/><\/p>\n<p style=\"text-align:center\">\u200b\u200b\u5f53\u6761\u4ef6\u8868\u8fbe\u5f0f\u662fa*2\u8fd9\u6837\u7684\u8ba1\u7b97\u65f6&#xff0c;\u200b\u200b\u53ea\u8981\u7ed3\u679c\u4e0d\u662f0\u6216None\u200b\u200b&#xff0c;\u5c31\u89c6\u4e3aTrue,\u89e6\u53d1\u6761\u4ef6\u6267\u884c\u200b\u200b&#xff0c;\u53ea\u6709\u7ed3\u679c\u4e3a0\u6216None\u624d\u4f1a\u8df3\u8fc7\u540e\u7eed\u4ee3\u7801\u3002<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154929-6967bb09392b8.png\" \/><\/p>\n<p>&#xff08;2&#xff09;\u200b\u200bif-else\u6761\u4ef6\u8bed\u53e5\u200b\u200b&#xff1a;\u200b\u200b\u6761\u4ef6\u5224\u65ad\u540e\u8ddf\u4e00\u4e2a\u4ee3\u7801\u5757\u200b\u200b&#xff0c;\u5982\u679c\u6761\u4ef6\u4e3atrue\u5c31\u6267\u884c\u8fd9\u4e2a\u4ee3\u7801\u5757&#xff0c;\u5426\u5219\u6267\u884celse\u540e\u9762\u7684\u4ee3\u7801\u5757\u3002<\/p>\n<p>&#xff08;3&#xff09;\u200b\u200b\u200b\u200bif-elif-else\u7684\u5f62\u5f0f\u200b\u200b&#xff1a;\u5904\u7406\u591a\u4e2a\u6761\u4ef6\u200b\u200b\u65f6\u53ef\u7528\u3002\u5b83\u4f1a\u6309\u987a\u5e8f\u68c0\u67e5\u6bcf\u4e2a\u6761\u4ef6&#xff0c;\u7b2c\u4e00\u4e2a\u6ee1\u8db3\u7684\u5c31\u6267\u884c\u5bf9\u5e94\u7684\u4ee3\u7801\u5757&#xff0c;\u4e0d\u6ee1\u8db3\u5c31\u8fdb\u884c\u4e0b\u4e00\u6b21\u5224\u65adelif&#xff0c;\u90fd\u4e0d\u6ee1\u8db3\u5c31\u6267\u884celse\u90e8\u5206\u3002<\/p>\n<p>&#xff08;4&#xff09;&#034;\u4e0e(and)&#034;\u8fd0\u7b97\u3001&#034;\u6216(or)&#034;\u8fd0\u7b97&#xff1a;and\u8868\u793a\u524d\u540e\u6761\u4ef6\u8981\u540c\u65f6\u6ee1\u8db3\u624d\u4e3aTrue&#xff0c;or\u8868\u793a\u524d\u540e\u6761\u4ef6\u6ee1\u8db3\u4e00\u4e2a\u5c31\u4e3aTrue\u3002\u5728\u591a\u4e2a\u6761\u4ef6\u5224\u65ad\u65f6&#xff0c;\u8981\u7528\u62ec\u53f7\u6807\u660e\u54ea\u4e9b\u6761\u4ef6\u5148\u8fdb\u884c\u8fd0\u7b97\u3002<\/p>\n<p>&#xff08;5&#xff09;\u200b\u200bif-else\u7684\u7b80\u6d01\u5199\u6cd5\u200b\u200b&#xff1a;\u8868\u8fbe\u5f0f1 if \u6761\u4ef6 else \u8868\u8fbe\u5f0f2\u3002\u8fd9\u79cd\u5355\u884c\u5199\u6cd5\u76f8\u5f53\u4e8e\u628a\u5e38\u89c4\u7684if-else\u7ed3\u6784\u538b\u7f29\u6210\u4e00\u884c&#xff0c;\u5148\u5224\u65ad\u6761\u4ef6&#xff0c;\u4e3a\u771f\u5219\u8fd4\u56de\u8868\u8fbe\u5f0f1&#xff0c;\u5426\u5219\u8fd4\u56de\u8868\u8fbe\u5f0f2\u3002\u5c31\u50cf\u4f8b\u5b50\u4e2d\u6bd4\u8f83a\u548cb\u7684\u5927\u5c0f&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u5199\u6210a if a&gt;b else b\u6765\u83b7\u53d6\u8f83\u5927\u503c\u3002<\/p>\n<h3>3.2\u200b\u200b\u5faa\u73af\u8bed\u53e5\u200b\u200b<\/h3>\n<p>&#xff08;1&#xff09;\u200b\u200bfor\u5faa\u73af&#xff1a;&#034;for \u53d8\u91cf in \u5faa\u73af\u5185\u5bb9:&#034;\u200b\u200b&#xff0c;\u540e\u9762\u8ddf\u5e26\u7f29\u8fdb\u7684\u4ee3\u7801\u5757\u3002<\/p>\n<p>\u200b\u200b\u5faa\u73af\u6b21\u6570\u5b8c\u5168\u7531\u5faa\u73af\u5185\u5bb9\u7684\u6570\u91cf\u51b3\u5b9a\u200b\u200b&#xff0c;\u6bd4\u5982\u6709\u51e0\u4e2a\u5143\u7d20\u5c31\u4f1a\u5faa\u73af\u51e0\u6b21&#xff0c;\u6bcf\u6b21\u5faa\u73af\u90fd\u4f1a\u81ea\u52a8\u5c06\u5f53\u524d\u5143\u7d20\u8d4b\u503c\u7ed9\u5faa\u73af\u53d8\u91cf\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154929-6967bb098ed14.png\" \/><\/p>\n<p>\u200b\u200brange\u51fd\u6570\u200b\u200b\u89e3\u51b3\u4e86\u6570\u5b57\u5faa\u73af\u7684\u95ee\u9898\u3002\u56e0\u4e3a\u6570\u5b57\u4e0d\u50cf\u5b57\u7b26\u4e32\u90a3\u6837\u53ef\u4ee5\u62c6\u5206\u6210\u5355\u4e2a\u5b57\u7b26&#xff0c;\u6240\u4ee5\u9700\u8981range\u51fd\u6570\u6765\u200b\u200b\u751f\u6210\u4e00\u4e2a\u53ef\u8fed\u4ee3\u7684\u6570\u5b57\u5e8f\u5217\u200b\u200b\u3002\u6bd4\u5982\u60f3\u5faa\u73afn\u6b21&#xff0c;\u7528range(n)\u5c31\u80fd\u751f\u62100\u5230n-1\u7684\u5e8f\u5217\u4f9b\u5faa\u73af\u4f7f\u7528\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"699\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154929-6967bb09a392b.png\" width=\"531\" \/><\/p>\n<p>\u200b\u200brange\u51fd\u6570\u200b\u200b\u4e0d\u4ec5\u80fd\u751f\u6210\u7b80\u5355\u7684\u6570\u5b57\u5e8f\u5217&#xff0c;\u8fd8\u80fd\u901a\u8fc7\u53c2\u6570\u63a7\u5236\u8303\u56f4\u548c\u6b65\u957f&#xff1a;<\/p>\n<ul>\n<li>\u200b\u200b\u5355\u53c2\u6570\u200b\u200b&#xff08;\u5982range(1000)&#xff09;&#xff1a;\u751f\u6210\u4ece0\u5230999\u7684\u5e8f\u5217<\/li>\n<\/ul>\n<ul>\n<li>\u200b\u200b\u53cc\u53c2\u6570\u200b\u200b&#xff08;\u5982range(4,8)&#xff09;&#xff1a;\u751f\u6210\u4ece4\u52307&#xff08;\u200b\u200b\u4e0d\u5305\u542b8\u200b\u200b&#xff09;\u7684\u5e8f\u5217<\/li>\n<\/ul>\n<ul>\n<li>\u200b\u200b\u4e09\u53c2\u6570\u200b\u200b&#xff08;\u5982range(4,8,2)&#xff09;&#xff1a;\u4ece4\u5f00\u59cb&#xff0c;\u6b65\u957f\u4e3a2&#xff0c;\u751f\u62104\u548c6&#xff08;\u8df3\u8fc75\u548c7&#xff09;<\/li>\n<\/ul>\n<p>for\u5faa\u73af\u590d\u5408\u5199\u6cd5&#xff1a;B &#061; [a*2 for a in range(5)]\u8fd9\u884c\u4ee3\u7801\u5176\u5b9e\u7b49\u6548\u4e8e&#xff1a;\u5148\u521b\u5efa\u4e00\u4e2a\u7a7a\u5217\u8868B&#xff0c;\u7136\u540e\u7528for\u5faa\u73af\u904d\u5386range(5)&#xff0c;\u6bcf\u6b21\u5faa\u73af\u628aa*2\u7684\u7ed3\u679c\u7528append()\u65b9\u6cd5\u6dfb\u52a0\u5230\u5217\u8868B\u4e2d\u3002\u6267\u884c\u540e\u5f97\u5230\u7684B\u5217\u8868\u4f1a\u5305\u542b[0,2,4,6,8]\u8fd9\u4e9b\u5143\u7d20\u3002<\/p>\n<p>&#xff08;2&#xff09;while\u5faa\u73af&#xff1a;\u53ea\u8981\u6761\u4ef6\u6ee1\u8db3&#xff08;\u59824&gt;&#061;3\u4e3aTrue&#xff09;&#xff0c;\u5c31\u4f1a\u53cd\u590d\u6267\u884c\u4ee3\u7801\u5757&#xff0c;\u6267\u884c\u5b8c\u53c8\u8fd4\u56de\u68c0\u67e5\u6761\u4ef6\u3002\u200b\u200b\u5173\u952e\u70b9\u200b\u200b\u5728\u4e8e\u8fd9\u4e2a\u5faa\u73af\u4f1a\u6301\u7eed\u5230\u6761\u4ef6\u4e0d\u6ee1\u8db3\u4e3a\u6b62&#xff0c;\u5982\u679c\u6761\u4ef6\u6c38\u8fdc\u4e3a\u771f&#xff08;\u6bd4\u59824&gt;&#061;3&#xff09;&#xff0c;\u5c31\u4f1a\u9677\u5165\u200b\u200b\u6b7b\u5faa\u73af\u200b\u200b\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154929-6967bb09bdcf4.png\" \/><\/p>\n<p>&#xff08;3&#xff09;\u200b\u200b\u5d4c\u5957\u5faa\u73af&#xff1a;\u200b\u200b\u7f29\u8fdb\u51b3\u5b9a\u4e86\u4ee3\u7801\u5757\u7684\u5f52\u5c5e\u200b\u200b\u3002\u5916\u5c42\u5faa\u73af\u7684\u6bcf\u6b21\u8fed\u4ee3&#xff0c;\u5fc5\u987b\u200b\u200b\u5b8c\u6574\u6267\u884c\u5185\u5c42\u5faa\u73af\u7684\u6240\u6709\u5185\u5bb9\u200b\u200b\u540e&#xff0c;\u5916\u5c42\u5faa\u73af\u7684\u53d8\u91cf\u624d\u4f1a\u66f4\u65b0\u3002<\/p>\n<p>&#xff08;4&#xff09;\u200b\u200bbreak\u3001continue\u5173\u952e\u5b57\u200b\u200b\u7684\u4f5c\u7528&#xff1a;break\u4e00\u65e6\u6ee1\u8db3\u6761\u4ef6\u662f\u76f4\u63a5\u7ec8\u6b62\u6574\u4e2a\u5faa\u73af\u200b\u200b&#xff0c;\u800c\u200b\u200bcontinue\u53ea\u662f\u8df3\u8fc7\u5f53\u524d\u8fd9\u6b21\u5faa\u73af\u200b\u200b&#xff0c;\u76f8\u5f53\u4e8e&#034;\u8fd9\u8f6e\u6211\u5148\u4e0d\u73a9\u4e86&#034;&#xff0c;\u4f46\u5faa\u73af\u8fd8\u4f1a\u7ee7\u7eed\u4e0b\u4e00\u8f6e\u3002<\/p>\n<h3>3.3\u200b\u200b\u5f02\u5e38\u5904\u7406\u8bed\u53e5\u200b\u200b<\/h3>\n<p>\u5f53\u6211\u4eec\u7528input()\u63a5\u6536\u7528\u6237\u8f93\u5165\u5e76\u5f3a\u5236\u8f6c\u4e3a\u6574\u6570\u65f6&#xff0c;\u5982\u679c\u7528\u6237\u4e0d\u5c0f\u5fc3\u8f93\u5165\u4e86\u5b57\u6bcd\u7a0b\u5e8f\u5c31\u4f1a\u62a5\u9519ValueError&#xff08;\u503c\u9519\u8bef&#xff09;\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154929-6967bb09f05f9.png\" \/><\/p>\n<p>\u200b\u200btry-except\u5f02\u5e38\u5904\u7406\u7ed3\u6784\u200b\u200b&#xff1a;\u5f53try\u4ee3\u7801\u5757\u51fa\u73b0\u5f02\u5e38\u65f6&#xff0c;\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8df3\u8f6c\u5230except\u4ee3\u7801\u5757\u6267\u884c\u3002\u6bd4\u5982\u53ef\u4ee5\u7528\u5b83\u6765\u62e6\u622a\u7528\u6237\u8f93\u5165\u7684\u5f02\u5e38\u503c\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154930-6967bb0a48b73.png\" \/><\/p>\n<p>\u4f46\u8fd9\u91cc\u6709\u4e2a\u200b\u200b\u6613\u5ffd\u7565\u7684\u7ec6\u8282\u200b\u200b&#xff1a;\u8f93\u51650\u4e5f\u4f1a\u88ab\u5224\u5b9a\u4e3a&#034;\u4e0d\u6b63\u786e&#034;\u3002\u8fd9\u8bf4\u660e\u4ee3\u7801\u7684\u9a8c\u8bc1\u903b\u8f91\u53ef\u80fd\u5b58\u5728\u6f0f\u6d1e&#xff0c;\u9700\u8981\u8fdb\u4e00\u6b65\u68c0\u67e5\u6761\u4ef6\u5224\u65ad\u8bed\u53e5\u662f\u5426\u5408\u7406\u3002\u8fd9\u79cd\u60c5\u51b5\u5728\u7f16\u7a0b\u4e2d\u5f88\u5e38\u89c1&#xff0c;\u63d0\u9192\u6211\u4eec\u8981\u7279\u522b\u6ce8\u610f\u8fb9\u754c\u6761\u4ef6\u7684\u6d4b\u8bd5\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154930-6967bb0a771db.png\" \/><\/p>\n<p>\u5f53\u7a0b\u5e8f\u9047\u5230\u8f93\u5165\u9519\u8bef\u65f6&#xff0c;\u200b\u200b\u4e0d\u80fd\u7b80\u5355\u5730\u673a\u68b0\u62a5\u9519\u200b\u200b&#xff0c;\u800c\u5e94\u8be5\u6839\u636e\u5177\u4f53\u9519\u8bef\u7c7b\u578b\u7ed9\u51fa\u4eba\u6027\u5316\u63d0\u793a\u3002\u6bd4\u5982\u8f93\u51650\u4f1a\u89e6\u53d1\u200b\u200bZeroDivisionError\u200b\u200b&#xff08;\u96f6\u9664\u9519\u8bef&#xff09;&#xff0c;\u8f93\u5165\u975e\u6570\u5b57\u4f1a\u89e6\u53d1\u200b\u200bValueError\u200b\u200b&#xff08;\u503c\u9519\u8bef&#xff09;\u3002\u901a\u8fc7\u200b\u200b\u6355\u83b7\u7279\u5b9a\u5f02\u5e38\u7c7b\u578b\u200b\u200b&#xff0c;\u53ef\u4ee5\u9488\u5bf9\u6027\u5730\u63d0\u793a&#034;\u6570\u5b57\u4e0d\u80fd\u4e3a0&#034;\u6216&#034;\u8bf7\u8f93\u5165\u6709\u6548\u6570\u5b57&#034;&#xff0c;\u8fd9\u6837\u6bd4\u7b3c\u7edf\u7684&#034;\u8f93\u5165\u4e0d\u6b63\u786e&#034;\u66f4\u6e05\u6670\u6613\u61c2\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154930-6967bb0ad64c8.png\" \/><\/p>\n<\/p>\n<h2>\u200b\u56db\u3001\u7ec4\u5408\u6570\u636e\u7c7b\u578b\u200b\u200b<\/h2>\n<p>\u5728\u57fa\u7840\u9636\u6bb5&#xff0c;\u6211\u4eec\u4f1a\u91cd\u70b9\u5b66\u4e60\u4e09\u79cd\u7ec4\u5408\u6570\u636e\u7c7b\u578b&#xff1a;\u200b\u200b\u5217\u8868\u3001\u5143\u7ec4\u548c\u5b57\u5178\u200b\u200b\u3002<\/p>\n<h3 style=\"background-color:transparent\">4.1\u200b\u200b\u5217\u8868<\/h3>\n<p>\u7528\u4e2d\u62ec\u53f7[]\u8868\u793a&#xff0c;\u91cc\u9762\u80fd\u88c5\u5404\u79cd\u7c7b\u578b\u7684\u6570\u636e\u3002\u6570\u503c&#xff08;\u6bd4\u59821\u30012&#xff09;\u3001\u5b57\u7b26\u4e32&#xff08;\u6bd4\u5982&#034;python&#034;&#xff09;\u3001\u751a\u81f3\u5176\u4ed6\u5217\u8868\u3001\u5143\u7ec4\u3001\u5b57\u5178\u90fd\u80fd\u5f80\u91cc\u585e\u3002<\/p>\n<p>\u5217\u8868\u5143\u7d20\u7528\u9017\u53f7\u9694\u5f00&#xff0c;\u6bcf\u4e2a\u5143\u7d20\u53ef\u4ee5\u662f\u5b8c\u5168\u4e0d\u540c\u7684\u6570\u636e\u7c7b\u578b\u3002\u8fd9\u79cd\u7279\u6027\u8ba9\u5217\u8868\u6210\u4e3a\u5904\u7406\u590d\u6742\u6570\u636e\u7684\u5229\u5668&#xff0c;\u6bd4\u5982\u7535\u5546\u7cfb\u7edf\u4e2d\u7528\u6237\u7684\u540d\u5b57&#xff08;\u5b57\u7b26\u4e32&#xff09;\u3001\u5e74\u9f84&#xff08;\u6570\u503c&#xff09;\u3001\u8d2d\u7269\u8f66&#xff08;\u5217\u8868&#xff09;\u5c31\u80fd\u7edf\u4e00\u7ba1\u7406\u3002<\/p>\n<p>\u200b\u200b\u7d22\u5f15\u4ece0\u5f00\u59cb\u200b\u200b&#xff0c;a[0]\u53d6\u7b2c\u4e00\u4e2a\u5143\u7d20\u3002\u5224\u65ad\u5143\u7d20\u4e2a\u6570\u8981\u200b\u200b\u770b\u9017\u53f7\u5206\u9694\u200b\u200b&#xff0c;\u9047\u5230\u5b50\u5217\u8868\u65f6&#xff0c;\u65e0\u8bba\u5b83\u5185\u90e8\u591a\u590d\u6742&#xff0c;\u90fd\u89c6\u4e3a\u4e00\u4e2a\u72ec\u7acb\u5143\u7d20\u3002\u200b\u200b\u8d1f\u6570\u7d22\u5f15\u200b\u200b\u8868\u793a\u4ece\u540e\u5f80\u524d\u6570&#xff0c;-1\u662f\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<p>\u200b\u200b\u5207\u7247\u64cd\u4f5c\u200b\u200b\u548c\u5b57\u7b26\u4e32\u7c7b\u4f3c&#xff0c;\u8bed\u6cd5\u662f[start:end]&#xff0c;\u8fd9\u4e9b\u89c4\u5219\u548c\u5b57\u7b26\u4e32\u5207\u7247\u5b8c\u5168\u4e00\u81f4\u3002<\/p>\n<p>\u5728\u200b\u200b\u5d4c\u5957\u5217\u8868\u200b\u200b\u64cd\u4f5c\u4e2d&#xff0c;\u9700\u8981\u5206\u6b65\u64cd\u4f5c&#xff1a;\u5148\u901a\u8fc7\u4e3b\u5217\u8868\u7d22\u5f15\u5b9a\u4f4d\u5230\u5b50\u5217\u8868&#xff0c;\u518d\u901a\u8fc7\u5b50\u5217\u8868\u7d22\u5f15\u5b9a\u4f4d\u5177\u4f53\u5143\u7d20\u3002\u8c03\u8bd5\u6a21\u5f0f\u4e0b\u53ef\u4ee5\u200b\u200b\u9010\u5c42\u5c55\u5f00\u200b\u200b\u5217\u8868\u7ed3\u6784&#xff0c;\u76f4\u89c2\u770b\u5230\u6bcf\u4e2a\u5b50\u5217\u8868\u7684\u5185\u5bb9\u3002\u6bd4\u5982\u8981\u83b7\u53d6s1[2][4]\u7684\u503c&#xff0c;\u5fc5\u987b\u5148\u62ff\u5230s1[2]\u8fd9\u4e2a\u5b50\u5217\u8868&#xff0c;\u624d\u80fd\u7ee7\u7eed\u7d22\u5f15[4]\u3002<\/p>\n<p>\u5217\u8868\u7c7b\u578b\u51fd\u6570&#xff1a;list()\u53ef\u4ee5\u5c06\u7c7b\u578b\u5f3a\u5236\u8f6c\u6362\u4e3a\u5217\u8868\u3002<\/p>\n<p>\u5217\u8868\u65b9\u6cd5&#xff1a;<\/p>\n<p>&#xff08;1&#xff09;append&#xff08;&#xff09;&#xff1a;\u5728\u5217\u8868\u6700\u540e\u589e\u52a0\u4e00\u4e2a\u5143\u7d20<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154931-6967bb0b20b8b.png\" \/><\/p>\n<p>&#xff08;2&#xff09;clear():\u6e05\u9664\u5217\u8868\u4e2d\u6240\u6709\u5143\u7d20&#xff0c;\u62ec\u53f7\u5185\u65e0\u9700\u6dfb\u52a0\u53c2\u6570\u3002<\/p>\n<p>\u00a0&#xff08;3&#xff09;\u200bcopy()&#xff1a;\u200b\u200b\u4f1a\u200b\u200b\u771f\u6b63\u521b\u5efa\u65b0\u5185\u5b58\u7a7a\u95f4\u200b\u200b&#xff0c;\u628a\u539f\u5217\u8868\u5185\u5bb9\u5b8c\u6574\u590d\u5236\u8fc7\u53bb&#xff0c;\u6b64\u65f6\u4fee\u6539\u539f\u5217\u8868\u4e0d\u4f1a\u5f71\u54cd\u65b0\u5217\u8868\u3002\u76f4\u63a5\u8d4b\u503c&#xff08;lst2 &#061; lst&#xff09;\u200b\u200b\u53ea\u662f\u7ed9\u200b\u200b\u540c\u4e00\u5757\u5185\u5b58\u7a7a\u95f4\u8d77\u4e86\u65b0\u540d\u5b57\u200b\u200b&#xff08;\u5982lst2&#xff09;&#xff0c;\u672c\u8d28\u4e0alst\u548clst2\u662f\u540c\u4e00\u4e2a\u5bf9\u8c61\u3002\u6240\u4ee5\u7528clear()\u6e05\u7a7a\u5176\u4e2d\u4e00\u4e2a&#xff0c;\u53e6\u4e00\u4e2a\u4e5f\u4f1a\u540c\u6b65\u6e05\u7a7a\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154931-6967bb0b59527.png\" \/><\/p>\n<p>&#xff08;4&#xff09;\u200b\u200bcount()\u200b\u200b&#xff1a;\u7edf\u8ba1\u5143\u7d20\u51fa\u73b0\u6b21\u6570&#xff0c;\u6bd4\u5982\u7edf\u8ba1&#034;\u5976\u8336&#034;\u5728\u5217\u8868\u91cc\u51fa\u73b0\u4e863\u6b21&#xff0c;\u5c31\u8fd4\u56de\u6570\u5b573<\/p>\n<p>&#xff08;5&#xff09;\u200b\u200bindex()\u200b\u200b&#xff1a;\u67e5\u627e\u5143\u7d20\u4f4d\u7f6e&#xff0c;\u6bd4\u5982\u627e&#034;\u51b0\u6fc0\u51cc&#034;\u7684\u4e0b\u6807\u662f2&#xff08;\u4ece0\u5f00\u59cb\u6570&#xff09;<\/p>\n<p>&#xff08;6&#xff09;\u200b\u200binsert&#xff08;&#xff09;&#xff1a;\u5b83\u5728\u6307\u5b9a\u4f4d\u7f6e\u63d2\u5165\u5143\u7d20&#xff0c;\u5176\u4ed6\u5143\u7d20\u4f1a\u81ea\u52a8\u540e\u79fb\u3002\u5982a.insert(2,&#034;abc&#034;)\u5c31\u662f\u5728\u7d22\u5f152\u7684\u4f4d\u7f6e\u52a0\u5165\u5143\u7d20&#034;abc&#034;\u3002<\/p>\n<p>&#xff08;7&#xff09;\u200b\u200bpop&#xff08;&#xff09;&#xff1a;\u662f\u6309\u7d22\u5f15\u5220\u9664\u5143\u7d20&#xff0c;\u6bd4\u5982pop(2)\u5c31\u662f\u5220\u9664\u4e0b\u68072\u7684\u5143\u7d20\u3002\u200b<\/p>\n<p>&#xff08;8&#xff09;remove&#xff08;&#xff09;&#xff1a;\u200b\u200b\u662f\u5220\u9664\u200b\u200b\u7b2c\u4e00\u4e2a\u5339\u914d\u503c\u200b\u200b&#xff0c;remove(&#034;\u5927\u76d8\u9e21&#034;)\u53ea\u5220\u9664\u7b2c\u4e00\u4e2a&#034;\u5927\u76d8\u9e21&#034;&#xff0c;\u540e\u9762\u91cd\u590d\u7684\u4e0d\u4f1a\u5220\u3002<\/p>\n<p>&#xff08;9&#xff09;\u200b\u200breverse&#xff08;&#xff09;&#xff1a;\u200b\u200b\u76f4\u63a5\u7ffb\u8f6c\u6574\u4e2a\u5217\u8868\u987a\u5e8f\u3002\u5982\u4e0b\u56fe\u7ffb\u8f6c\u540e\u7684\u4fe1\u606f\u4e0d\u4f1a\u8fd4\u56de\u7ed9b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"363\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154931-6967bb0bb8ca5.png\" width=\"669\" \/><\/p>\n<p>&#xff08;10&#xff09;sort&#xff08;&#xff09;&#xff1a;\u4e2d\u6587\u5217\u8868\u6392\u5e8f\u9ed8\u8ba4\u6309\u62fc\u97f3\u5b57\u6bcd\u987a\u5e8f\u200b\u200b\u3002\u200b\u200b\u6570\u5b57\u5217\u8868\u9ed8\u8ba4\u4ece\u5c0f\u5230\u5927\u6392\u5e8f\u200b\u200b&#xff0c;\u4f46\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6ereverse&#061;True\u53c2\u6570\u6539\u4e3a\u4ece\u5927\u5230\u5c0f\u6392\u5217\u3002<\/p>\n<h3>4.2\u5143\u7ec4<\/h3>\n<p>\u5143\u7ec4\u4f7f\u7528\u5706\u62ec\u53f7()\u5305\u88f9\u5143\u7d20\u200b\u200b\u3002\u200b\u200b\u5217\u8868\u548c\u5143\u7ec4\u7684\u5173\u952e\u533a\u522b\u200b\u200b\u5728\u4e8e\u200b\u200b\u53ef\u53d8\u6027\u200b\u200b\u3002\u5217\u8868(list)\u7528\u65b9\u62ec\u53f7\u8868\u793a&#xff0c;\u53ef\u4ee5\u968f\u610f\u589e\u5220\u6539\u5143\u7d20&#xff1b;\u800c\u5143\u7ec4(tuple)\u7528\u5706\u62ec\u53f7\u8868\u793a&#xff0c;\u200b\u200b\u4e00\u65e6\u521b\u5efa\u5c31\u4e0d\u53ef\u4fee\u6539\u200b\u200b&#xff0c;\u5305\u62ec\u4e0d\u80fd\u5220\u9664\u3001\u6dfb\u52a0\u6216\u53cd\u8f6c\u5143\u7d20\u3002\u53ef\u7528tuple()\u51fd\u6570\u5f3a\u5236\u8f6c\u6362\u4e3a\u5143\u7ec4\u3002<\/p>\n<h3>4.3\u5b57\u5178<\/h3>\n<p>\u6ca1\u6709\u5e8f\u53f7&#xff0c;\u53ea\u80fd\u901a\u8fc7\u952e\u6765\u627e\u503c<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154931-6967bb0bcbb15.png\" \/>\u200b<\/p>\n<p>\u5b57\u5178\u7279\u522b\u9002\u5408\u5b58\u50a8\u200b\u200b\u952e\u503c\u5bf9\u5f62\u5f0f\u7684\u6570\u636e\u200b\u200b&#xff0c;\u6bd4\u5982\u7528\u6237\u4fe1\u606f\u8fd9\u79cd\u7ed3\u6784\u5316\u6570\u636e&#xff1b;\u800c\u5217\u8868\u66f4\u9002\u5408\u5b58\u50a8\u200b\u200b\u540c\u7c7b\u578b\u5143\u7d20\u7684\u96c6\u5408\u200b\u200b\u3002\u4e24\u8005\u7684\u6838\u5fc3\u533a\u522b\u5728\u4e8e&#xff1a;\u5b57\u5178\u901a\u8fc7\u952e\u5feb\u901f\u8bbf\u95ee\u503c&#xff0c;\u5217\u8868\u5219\u901a\u8fc7\u7d22\u5f15\u4f4d\u7f6e\u8bbf\u95ee\u5143\u7d20\u3002\u5b57\u5178\u7279\u522b\u9002\u5408\u7ba1\u7406\u8fd9\u7c7b\u200b\u200b\u5173\u8054\u6027\u6570\u636e\u200b\u200b&#xff0c;\u6bcf\u4e2a\u952e\u503c\u5bf9\u5c31\u662f\u4e00\u4e2a\u72ec\u7acb\u7684\u6570\u636e\u5355\u5143\u3002<\/p>\n<p>\u200b\u200b\u5b57\u5178\u548c\u5217\u8868\u7684\u6700\u5927\u533a\u522b\u200b\u200b\u5728\u4e8e\u5b57\u5178\u662f\u200b\u200b\u65e0\u5e8f\u200b\u200b\u7684&#xff0c;\u4e0d\u80fd\u50cf\u5217\u8868\u90a3\u6837\u901a\u8fc7\u7d22\u5f15\u53f7\u6765\u83b7\u53d6\u5143\u7d20&#xff0c;\u200b\u200b\u5fc5\u987b\u901a\u8fc7\u952e\u6765\u8bbf\u95ee\u5bf9\u5e94\u7684\u503c\u200b\u200b\u3002<\/p>\n<p>dict()\u51fd\u6570\u548clist()\u3001tuple()\u7c7b\u4f3c&#xff0c;\u90fd\u662f\u200b\u200b\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u51fd\u6570\u200b\u200b&#xff0c;\u4e5f\u53ef\u4ee5\u7528\u6765\u200b\u200b\u521b\u5efa\u7a7a\u5b57\u5178\u200b\u200b\u3002\u6bd4\u5982a &#061; dict()\u5c31\u4f1a\u751f\u6210\u4e00\u4e2a\u7a7a\u5b57\u5178\u3002\u5982\u679c\u60f3\u5f80\u5b57\u5178\u91cc\u6dfb\u52a0\u5185\u5bb9&#xff0c;\u53ef\u4ee5\u7528a[\u952e] &#061; \u503c\u7684\u65b9\u5f0f\u3002\u800c\u5217\u8868\u6dfb\u52a0\u5143\u7d20\u662f\u7528append()\u65b9\u6cd5&#xff0c;\u5b57\u5178\u5219\u662f\u76f4\u63a5\u901a\u8fc7\u200b\u200b\u952e\u8d4b\u503c\u200b\u200b\u7684\u65b9\u5f0f&#xff0c;\u5fc5\u987b\u660e\u786e\u6307\u5b9a\u952e\u548c\u5bf9\u5e94\u7684\u503c\u3002<\/p>\n<p>\u200b\u200b\u5b57\u5178\u662f\u901a\u8fc7\u952e(key)\u6765\u8bbf\u95ee\u503c(value)\u7684\u200b\u200b&#xff0c;\u800c\u4e0d\u662f\u50cf\u5217\u8868\u90a3\u6837\u901a\u8fc7\u4e0b\u6807(index)\u3002<\/p>\n<p>\u64cd\u4f5c\u65b9\u6cd5\u200b\u200b&#xff1a;<\/p>\n<p>&#xff08;1&#xff09;\u200b\u200bclear&#xff08;&#xff09;&#xff1a;\u76f4\u63a5\u6e05\u7a7a\u6574\u4e2a\u5b57\u5178\u5185\u5bb9\u3002<\/p>\n<p>\u200b\u200b&#xff08;2&#xff09;get&#xff08;&#xff09;&#xff1a;\u5b83\u63a5\u6536\u4e24\u4e2a\u53c2\u6570&#xff0c;\u200b\u200b\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u8981\u67e5\u627e\u7684\u952e\u200b\u200b&#xff0c;\u5982\u679c\u5b57\u5178\u4e2d\u5b58\u5728\u8fd9\u4e2a\u952e&#xff0c;\u5c31\u8fd4\u56de\u5bf9\u5e94\u7684\u503c&#xff1b;\u200b\u200b\u5982\u679c\u952e\u4e0d\u5b58\u5728\u200b\u200b&#xff0c;\u5219\u8fd4\u56de\u7b2c\u4e8c\u4e2a\u53c2\u6570\u7684\u503c\u3002\u6bd4\u5982dict.get(&#039;key1&#039;,&#039;default&#039;)&#xff0c;\u5c31\u662f\u5728\u5b57\u5178\u91cc\u627e&#039;key1&#039;&#xff0c;\u627e\u5230\u8fd4\u56de\u5176\u503c&#xff0c;\u627e\u4e0d\u5230\u5c31\u8fd4\u56de&#039;default&#039;\u3002\u8fd9\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u63a5\u53d71-2\u4e2a\u53c2\u6570\u200b\u200b\u3002\u5355\u53c2\u6570\u67e5\u4e0d\u5230\u8fd4None&#xff0c;\u53cc\u53c2\u6570\u67e5\u4e0d\u5230\u8fd4\u9ed8\u8ba4\u503c\u200b\u200b\u3002<\/p>\n<p>&#xff08;3&#xff09;keys()&#xff1a;\u4f1a\u8fd4\u56de\u4e00\u4e2adict_keys\u5bf9\u8c61\u200b\u200b\u3002\u6bd4\u5982\u6267\u884ca &#061; D.keys()\u540e&#xff0c;\u53d8\u91cfa\u4f1a\u5305\u542b\u5b57\u5178D\u7684\u6240\u6709\u952e\u96c6\u5408\u3002\u8fd9\u91cc\u8981\u6ce8\u610f\u7684\u662f&#xff0c;\u200b\u200bdict_keys\u5e76\u4e0d\u662f\u666e\u901a\u7684\u5217\u8868\u200b\u200b&#xff0c;\u800c\u662f\u5b57\u5178\u952e\u7684\u52a8\u6001\u89c6\u56fe&#xff0c;\u4f1a\u968f\u5b57\u5178\u66f4\u65b0\u800c\u53d8\u5316\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u8bed\u6cd5<br \/>\n\u4ee3\u7801\u6267\u884c\u662f\u4e25\u683c\u4ece\u4e0a\u5230\u4e0b\u7684\u987a\u5e8f\u200b\u200b&#xff0c;\u7f29\u8fdb\u89c4\u5219\u6781\u5176\u4e25\u683c\u200b\u200b&#xff0c;\u5f00\u5934\u7684\u7a7a\u683c\u6570\u91cf\u4e0d\u80fd\u968f\u610f\u589e\u51cf&#xff0c;\u56e0\u4e3a\u200b\u200b\u7a7a\u683c\u5728Python\u4e2d\u4ee3\u8868\u4ee3\u7801\u903b\u8f91\u5c42\u7ea7\u200b\u200b&#xff0c;\u591a\u4e00\u4e2a\u6216\u5c11\u4e00\u4e2a\u7a7a\u683c\u90fd\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u65e0\u6cd5\u8fd0\u884c\u3002\u200b<br \/>\n1.1\u8f93\u51fa\u51fd\u6570print()<br \/>\nprint()\u8f93\u51fa\u51fd\u6570\u200b\u200b\u548c\u200b\u200binput()\u8f93\u5165\u51fd\u6570\u662f\u4e24\u4e2a\u6700\u57fa\u7840\u7684\u51fd\u6570\u200b\u200b\u200b\u200b\u3002\u8fd9\u4e24\u4e2a\u51fd\u6570\u5206\u522b\u8d1f\u8d23\u4fe1\u606f\u7684\u8f93\u51fa\u548c\u63a5\u6536&#xff0c;\u662f\u7f16\u7a0b\u4e2d\u6700\u5e38\u7528\u7684\u57fa\u7840\u529f\u80fd\u3002<br \/>\nprint\u51fd\u6570\u7684\u4e09\u79cd\u57fa\u7840\u7528\u6cd5\u200b\u200b&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":60114,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,190],"topic":[],"class_list":["post-60133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>python\u8bed\u6cd5\u5165\u95e8\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5\u4e0e\u7ec4\u5408\u6570\u636e\u7c7b\u578b - \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\/60133.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"python\u8bed\u6cd5\u5165\u95e8\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5\u4e0e\u7ec4\u5408\u6570\u636e\u7c7b\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u8bed\u6cd5 \u4ee3\u7801\u6267\u884c\u662f\u4e25\u683c\u4ece\u4e0a\u5230\u4e0b\u7684\u987a\u5e8f\u200b\u200b&#xff0c;\u7f29\u8fdb\u89c4\u5219\u6781\u5176\u4e25\u683c\u200b\u200b&#xff0c;\u5f00\u5934\u7684\u7a7a\u683c\u6570\u91cf\u4e0d\u80fd\u968f\u610f\u589e\u51cf&#xff0c;\u56e0\u4e3a\u200b\u200b\u7a7a\u683c\u5728Python\u4e2d\u4ee3\u8868\u4ee3\u7801\u903b\u8f91\u5c42\u7ea7\u200b\u200b&#xff0c;\u591a\u4e00\u4e2a\u6216\u5c11\u4e00\u4e2a\u7a7a\u683c\u90fd\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u65e0\u6cd5\u8fd0\u884c\u3002\u200b 1.1\u8f93\u51fa\u51fd\u6570print() print()\u8f93\u51fa\u51fd\u6570\u200b\u200b\u548c\u200b\u200binput()\u8f93\u5165\u51fd\u6570\u662f\u4e24\u4e2a\u6700\u57fa\u7840\u7684\u51fd\u6570\u200b\u200b\u200b\u200b\u3002\u8fd9\u4e24\u4e2a\u51fd\u6570\u5206\u522b\u8d1f\u8d23\u4fe1\u606f\u7684\u8f93\u51fa\u548c\u63a5\u6536&#xff0c;\u662f\u7f16\u7a0b\u4e2d\u6700\u5e38\u7528\u7684\u57fa\u7840\u529f\u80fd\u3002 print\u51fd\u6570\u7684\u4e09\u79cd\u57fa\u7840\u7528\u6cd5\u200b\u200b&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/60133.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-14T15:49:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154928-6967bb08322d1.png\" \/>\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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60133.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/60133.html\",\"name\":\"python\u8bed\u6cd5\u5165\u95e8\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5\u4e0e\u7ec4\u5408\u6570\u636e\u7c7b\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-14T15:49:32+00:00\",\"dateModified\":\"2026-01-14T15:49:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/60133.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/60133.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60133.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"python\u8bed\u6cd5\u5165\u95e8\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5\u4e0e\u7ec4\u5408\u6570\u636e\u7c7b\u578b\"}]},{\"@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":"python\u8bed\u6cd5\u5165\u95e8\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5\u4e0e\u7ec4\u5408\u6570\u636e\u7c7b\u578b - \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\/60133.html","og_locale":"zh_CN","og_type":"article","og_title":"python\u8bed\u6cd5\u5165\u95e8\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5\u4e0e\u7ec4\u5408\u6570\u636e\u7c7b\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u8bed\u6cd5 \u4ee3\u7801\u6267\u884c\u662f\u4e25\u683c\u4ece\u4e0a\u5230\u4e0b\u7684\u987a\u5e8f\u200b\u200b&#xff0c;\u7f29\u8fdb\u89c4\u5219\u6781\u5176\u4e25\u683c\u200b\u200b&#xff0c;\u5f00\u5934\u7684\u7a7a\u683c\u6570\u91cf\u4e0d\u80fd\u968f\u610f\u589e\u51cf&#xff0c;\u56e0\u4e3a\u200b\u200b\u7a7a\u683c\u5728Python\u4e2d\u4ee3\u8868\u4ee3\u7801\u903b\u8f91\u5c42\u7ea7\u200b\u200b&#xff0c;\u591a\u4e00\u4e2a\u6216\u5c11\u4e00\u4e2a\u7a7a\u683c\u90fd\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u65e0\u6cd5\u8fd0\u884c\u3002\u200b 1.1\u8f93\u51fa\u51fd\u6570print() print()\u8f93\u51fa\u51fd\u6570\u200b\u200b\u548c\u200b\u200binput()\u8f93\u5165\u51fd\u6570\u662f\u4e24\u4e2a\u6700\u57fa\u7840\u7684\u51fd\u6570\u200b\u200b\u200b\u200b\u3002\u8fd9\u4e24\u4e2a\u51fd\u6570\u5206\u522b\u8d1f\u8d23\u4fe1\u606f\u7684\u8f93\u51fa\u548c\u63a5\u6536&#xff0c;\u662f\u7f16\u7a0b\u4e2d\u6700\u5e38\u7528\u7684\u57fa\u7840\u529f\u80fd\u3002 print\u51fd\u6570\u7684\u4e09\u79cd\u57fa\u7840\u7528\u6cd5\u200b\u200b&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/60133.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-14T15:49:32+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114154928-6967bb08322d1.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/60133.html","url":"https:\/\/www.wsisp.com\/helps\/60133.html","name":"python\u8bed\u6cd5\u5165\u95e8\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5\u4e0e\u7ec4\u5408\u6570\u636e\u7c7b\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-14T15:49:32+00:00","dateModified":"2026-01-14T15:49:32+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/60133.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/60133.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/60133.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"python\u8bed\u6cd5\u5165\u95e8\u3001\u57fa\u672c\u6570\u636e\u7c7b\u578b\u3001\u7a0b\u5e8f\u63a7\u5236\u8bed\u53e5\u4e0e\u7ec4\u5408\u6570\u636e\u7c7b\u578b"}]},{"@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\/60133","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=60133"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/60133\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/60114"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=60133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=60133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=60133"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=60133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}