{"id":44886,"date":"2020-10-28T20:29:55","date_gmt":"2020-10-28T12:29:55","guid":{"rendered":"http:\/\/www.zhushiyao.com\/?p=44886"},"modified":"2020-10-28T20:30:29","modified_gmt":"2020-10-28T12:30:29","slug":"819f367f56","status":"publish","type":"post","link":"http:\/\/www.zhushiyao.com\/?p=44886","title":{"rendered":"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<section style=\"margin-top: 5px; white-space: normal; color: #928c8c; font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: 0.544px; text-align: center; background-color: #ffffff; margin-left: 8px; margin-right: 8px;\"><\/section>\n<section style=\"margin-left: 8px; margin-right: 8px;\"><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">Python\u51ed\u4ec0\u4e48\u5c31\u90a3\u4e48\u597d\u7528\u5462\uff1f<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u6beb\u65e0\u7591\u95ee\uff0c\u5927\u91cf\u73b0\u6210\u53c8\u597d\u7528\u7684\u5185\u7f6e\/\u7b2c\u4e09\u65b9\u5e93\u529f\u4e0d\u53ef\u6ca1\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u90a3\u6211\u4eec\u662f\u600e\u4e48\u4f7f\u7528\u5b83\u4eec\u7684\u5462\uff1f<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5662\uff0c\u5bf9\u4e86~\u662f\u7528\u7684<\/span><code><span style=\"font-size: 15px;\">import xxx<\/span><\/code><span style=\"font-size: 15px;\">\u8fd9\u4e2a\u8bed\u53e5\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u4e4b\u6240\u4ee5\u4f1a\u6709\u6b64\u4e00\u95ee\uff0c\u4e5f\u662f\u4e4b\u524d\u6709\u4e00\u6b21\u4f7f\u7528PyCharm\u8fdb\u884c\u5f00\u53d1\u65f6\uff08\u53c8\uff09\u8e29\u4e86\u4e2a\u5751\u2026\u2026<\/span><\/section>\n<section style=\"margin-left: 8px; margin-right: 8px;\">\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" style=\"display: block; margin-right: auto; margin-left: auto;\" title=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/10\/5-1603888196.jpeg\" alt=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" \/><figcaption style=\"margin-top: 5px; text-align: center; color: #888; font-size: 14px;\"><\/figcaption><\/figure>\n<\/section>\n<h2 style=\"font-weight: bold; font-size: 22px; color: #009688; padding-left: 10px; margin: 1em 8px; border-left: 3px solid #009688;\">\u5e9f\u8bdd\u5c11\u8bf4\uff0c\u5148\u8bb2\u95ee\u9898<\/h2>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u50cf\u4e0b\u9762\u8fd9\u6837\u4e00\u4e2a\u9879\u76ee\u7ed3\u6784\uff1a<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\">Projetc_example<br \/>\n|&#8211; A<br \/>\n|&#8211; alpha.py<br \/>\n|&#8211; beta.py<br \/>\n|&#8211; B<br \/>\n|&#8211; theta.py<br \/>\n|&#8211; main<br \/>\n|&#8211; main.py<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5047\u8bbe\u8981\u5728main.py\u4e2d\u5bfc\u5165theta.py\uff1a<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\"><span style=\"color: #5c6370; font-style: italic; line-height: 26px;\">#\u00a0main\/main.py<\/span><br \/>\n<span style=\"color: #c678dd; line-height: 26px;\">from<\/span>\u00a0B\u00a0<span style=\"color: #c678dd; line-height: 26px;\">import<\/span>\u00a0theta<\/p>\n<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u663e\u7136\u4f1a\u5bfc\u81f4\u6211\u4eec\u6240\u4e0d\u5e0c\u671b\u7684\u95ee\u9898\uff0c\u5373Python\u4e0d\u77e5\u9053\u8981\u5230\u54ea\u91cc\u53bb\u627e\u8fd9\u4e2a\u540d\u4e3aB\u7684\u6a21\u5757\uff08\u5305\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u6a21\u5757\uff09\uff1a<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\">Traceback\u00a0(most\u00a0recent\u00a0call\u00a0last):<br \/>\nFile\u00a0&#8220;main\/main.py&#8221;,\u00a0line\u00a01,\u00a0in\u00a0&lt;module&gt;<br \/>\nfrom\u00a0B\u00a0import\u00a0theta<br \/>\nModuleNotFoundError:\u00a0No\u00a0module\u00a0named\u00a0&#8216;B&#8217;<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u53ef\u662f\u8fd9\u5c31\u5947\u4e86\u602a\u4e86\uff0c\u4e3a\u5565\u540c\u6837\u7684\u4ee3\u7801\uff0c\u5728PyCharm\u91cc\u8fd0\u884c\u5c31\u662f\u597d\u7684\u4e86\u5462\uff1f<\/span><\/section>\n<section style=\"text-align: center; margin-left: 8px; margin-right: 8px;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg\" title=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/10\/1-1603888196.jpeg\" alt=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" \/><\/section>\n<h2 style=\"font-weight: bold; font-size: 22px; color: #009688; padding-left: 10px; margin: 1em 8px; border-left: 3px solid #009688;\"><code>import<\/code>\u7684\u67e5\u627e\u8def\u5f84<\/h2>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u4e8e\u662f\u6211\u4eec\u4e0d\u8f9e\u8270\u8f9b\uff0c\u4e0a\u4e0b\u6c42\u7d22\uff0c\u539f\u6765\u5728Python\u4e2d\uff0cimport\u8bed\u53e5\u5b9e\u9645\u4e0a\u5c01\u88c5\u4e86\u4e00\u7cfb\u5217\u8fc7\u7a0b\u3002<\/span><\/section>\n<h3 style=\"font-weight: bold; font-size: 20px; margin: 0.6em 8px; padding-left: 10px; border-left: 2px solid #009688;\">1. \u67e5\u627e\u662f\u5426\u5df2\u5bfc\u5165\u540c\u540d\u6a21\u5757<\/h3>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u9996\u5148\uff0cPython\u4f1a\u6309\u7167import xxx\u4e2d\u6307\u5b9a\u7684\u5305\u540d\uff0c\u5230sys.modules\u4e2d\u67e5\u627e\u5f53\u524d\u73af\u5883\u4e2d\u662f\u5426\u5df2\u7ecf\u5b58\u5728\u76f8\u5e94\u7684\u5305\u2014\u2014\u4e0d\u8981\u5947\u602a\u4e3a\u4ec0\u4e48\u90fd\u6ca1\u6709\u5bfc\u5165sys\u8fd9\u4e2a\u6a21\u5757\u5c31\u6709sys.modules\u4e86\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">sys\u662fPython\u5185\u7f6e\u6a21\u5757\uff0c\u4e5f\u5c31\u662f\u4eb2\u513f\u5b50\uff0c\u5bfc\u5165\u53ea\u662f\u610f\u601d\u4e00\u4e0b\uff0c\u8ba9\u6211\u4eec\u8fd9\u6837\u7684\u5916\u4eba\u5728\u5bfc\u5165\u7684\u73af\u5883\u4e2d\u4e5f\u53ef\u4ee5\u4f7f\u7528\u76f8\u5173\u63a5\u53e3\u800c\u5df2\uff0c\u5b9e\u9645\u4e0a\u76f8\u5e94\u7684\u6570\u636e\u5bf9Python\u800c\u8a00\u4ece\u59cb\u81f3\u7ec8\u90fd\u662f\u900f\u660e\u7684\u3002<\/span><\/section>\n<section style=\"text-align: center; margin-left: 8px; margin-right: 8px;\"><img decoding=\"async\" class=\"rich_pages js_insertlocalimg\" title=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/10\/7-1603888196-1.jpeg\" alt=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" \/><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u6211\u4eec\u53ef\u4ee5\u5bfc\u5165sys\u67e5\u770b\u4e00\u4e0b\u8fd9\u4e2a\u5bf9\u8c61\u7684\u5177\u4f53\u5185\u5bb9\uff08\u8282\u7701\u7bc7\u5e45\uff0c\u505a\u7701\u7565\u5904\u7406\uff09\uff1a<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\"><span style=\"color: #61aeee; line-height: 26px;\">&gt;<\/span><span style=\"line-height: 26px;\">&gt;&gt;\u00a0import\u00a0sys<\/span><br \/>\n<span style=\"color: #61aeee; line-height: 26px;\">&gt;<\/span><span style=\"line-height: 26px;\">&gt;&gt;\u00a0sys.modules<\/span><br \/>\n{&#8216;sys&#8217;:\u00a0&lt;module\u00a0&#8216;sys&#8217;\u00a0(built-in)&gt;,\u00a0&#8216;builtins&#8217;:\u00a0&lt;module\u00a0&#8216;builtins&#8217;\u00a0(built-in)&gt;,\u00a0&#8230;&#8217;re&#8217;:\u00a0&lt;module\u00a0&#8216;re&#8217;\u00a0from\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\re.py&#8217;&gt;,\u00a0&#8230;}<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u8fd9\u4e9b\u5c31\u90fd\u662fPython\u4e00\u5f00\u59cb\u5c31\u5df2\u7ecf\u52a0\u8f7d\u597d\u7684\u6a21\u5757\uff0c\u4e5f\u5c31\u662f\u5b89\u88c5\u597dPython\u4e4b\u540e\uff0c\u53ea\u8981\u4e00\u8fd0\u884c\u73af\u5883\u4e2d\u5c31\u5df2\u7ecf\u5c31\u7eea\u7684\u6a21\u5757\u2014\u2014\u53ea\u662f\u4f5c\u4e3a\u5916\u4eba\u7684\u6211\u4eec\u8fd8\u4e0d\u80fd\u76f4\u63a5\u62ff\u8fc7\u6765\u7528\uff0c\u5f97\u8ddfPython\u62a5\u5907\u4e00\u58f0\uff1a\u201c\u6b38\uff0c\u6211\u8981\u62ff\u60a8\u513f\u5b50\u6765\u7528\u4e86\u55e8~\u201d<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5f88\u5bb9\u6613\u53ef\u4ee5\u53d1\u73b0\uff0csys.modules\u4e2d\u5217\u51fa\u6765\u7684\u5df2\u52a0\u8f7d\u6a21\u5757\u4e2d\u5b58\u5728\u660e\u663e\u7684\u4e0d\u540c\uff0c\u524d\u9762\u7684\u5f88\u591a\u6a21\u5757\u663e\u5f97\u5f88\u5e72\u51c0\uff0c\u800c\u540e\u9762\u7684\u5f88\u591a\u6a21\u5757\u90fd\u5e26\u6709from yyy&#8217;\u7684\u5b57\u6837\uff0c\u5e76\u4e14\u8fd9\u4e2ayyy\u770b\u8d77\u6765\u8fd8\u50cf\u662f\u4e00\u4e2a\u8def\u5f84\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u8fd9\u5c31\u5173\u7cfb\u5230\u6211\u4eec\u63a5\u4e0b\u6765\u8981\u8bb2\u7684\u6b65\u9aa4\u4e86\u3002<\/span><\/section>\n<h3 style=\"font-weight: bold; font-size: 20px; margin: 0.6em 8px; padding-left: 10px; border-left: 2px solid #009688;\">2. \u5728\u7279\u5b9a\u8def\u5f84\u4e0b\u67e5\u627e\u5bf9\u5e94\u6a21\u5757<\/h3>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u524d\u9762\u6211\u4eec\u8bb2\u5230\u4e86\uff0c\u5f53\u6211\u4eec\u5bfc\u5165\u67d0\u4e2a\u6a21\u5757\u65f6\uff0cPython\u5148\u4f1a\u53bb\u67e5\u8be2sys.modules\uff0c\u770b\u5176\u4e2d\u662f\u5426\u5b58\u5728\u540c\u540d\u6a21\u5757\uff0c\u67e5\u5230\u4e86\u90a3\u5f53\u7136\u7686\u5927\u6b22\u559c\uff0cPython\u76f4\u63a5\u628a\u8fd9\u4e2a\u6a21\u5757\u7ed9\u6211\u4eec\u7528\u5c31\u597d\u4e86\uff0c\u6bd5\u7adf\u513f\u5b50\u90a3\u4e48\u591a\uff0c\u501f\u51fa\u53bb\u8d5a\u70b9\u5916\u5feb\u4e5f\u662f\u597d\u4e8b\u513f\u4e0d\u662f\uff1f<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u53ef\u95ee\u9898\u5728\u4e8e\uff1a\u90a3\u8981\u662f\u6ca1\u627e\u5230\u5462\uff1f<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u8fd9\u663e\u7136\u662f\u4e00\u4e2a\u5f88\u73b0\u5b9e\u7684\u95ee\u9898\u3002\u6bd5\u7adf\u8d44\u6e90\u662f\u6709\u9650\u7684\uff0cPython\u4e0d\u53ef\u80fd\u628a\u4f60\u53ef\u80fd\u7528\u5230\u7684\u6240\u6709\u6a21\u5757\u5168\u90fd\u4e00\u80a1\u8111\u7ed9\u52a0\u8f7d\u8d77\u6765\uff0c\u5426\u5219\u8fd9\u6837\u7537\u4e0a\u52a0\u7537\u52a0\u7537\u52a0\u7537\u2026\u2026\u8c01\u4e5f\u9876\u4e0d\u4f4f\u554a\u4e0d\u662f\uff08\u5927\u96fe<\/span><\/section>\n<section style=\"margin-left: 8px; margin-right: 8px;\">\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" style=\"display: block; margin-right: auto; margin-left: auto;\" title=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/10\/7-1603888196-2.jpeg\" alt=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" \/><\/figure>\n<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\">\n<span style=\"font-size: 15px;\">\u4e8e\u662f\u4e4e\u5c31\u6709\u4eba\u7ed9Python\u51fa\u4e86\u4e2a\u4e3b\u610f\uff1a\u90a3\u4f60\u7b49\u5230\u8981\u7528\u7684\u65f6\u5019\uff0c\u518d\u53bb\u627e\u4ed6\u8bf4\u4ed6\u662f\u4f60\u513f\u5b50\u5457<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">Python\uff1a\u5999\u54c7~<\/span><\/section>\n<section style=\"margin-left: 8px; margin-right: 8px;\">\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" style=\"display: block; margin-right: auto; margin-left: auto;\" title=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/10\/3-1603888196.jpeg\" alt=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" \/><\/figure>\n<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\">\n<span style=\"font-size: 15px;\">\u6709\u4e86\u8fd9\u4e2a\u601d\u8def\uff0cPython\u5c31\u6307\u5b9a\u4e86\u51e0\u5bb6\u7279\u5b9a\u7684\u9152\u697c\uff0c\u8bf4\uff1a\u201c\u51e1\u662f\u53bb\u6d88\u8d39\u7684\u5404\u4f4d\uff0c\u90fd\u53ef\u4ee5\u7ed9\u6211\u5f53\u513f\u5b50\u3002\u201d<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5c31\u8fd9\u6837\uff0c\u4e00\u4e9b\u672c\u6765\u4e0d\u662fPython\u4eb2\u513f\u5b50\u7684\u4eba\uff0c\u51fa\u4e8e\u5404\u79cd\u539f\u56e0\u805a\u96c6\u5230\u4e86\u8fd9\u51e0\u5bb6\u9152\u697c\uff0c\u4ee5\u96c7\u4f63\u5175\u7684\u8eab\u4efd\u968f\u65f6\u51c6\u5907\u4e34\u65f6\u79f0\u4e3aPython\u7684\u513f\u5b50\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u8fd9\u53ef\u5c31\u6bd4\u5468\u6587\u738b\u5f00\u5c40\u5c31\u6536100\u4e2a\u4e49\u5b50\u4f18\u96c5\u591a\u4e86\uff0c\u517b\u5bb6\u7cca\u53e3\u7684\u538b\u529b\u4e5f\u5c31\u6ca1\u90a3\u4e48\u5927\u4e86\uff08Python\uff1a\u4ec0\u4e48\uff1f\u6211\u7684\u4eb2\u513f\u5b50\u90fd\u4e0d\u6b62100\u4e2a\uff1f\u4f60\u8bf4\u4ec0\u4e48\uff1f\u542c\u4e0d\u89c1\u554a\u2014\u2014<\/span><\/section>\n<section style=\"margin-left: 8px; margin-right: 8px;\">\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" style=\"display: block; margin-right: auto; margin-left: auto;\" title=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2020\/10\/5-1603888196.png\" alt=\"\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\" \/><\/figure>\n<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\">\n<span style=\"font-size: 15px;\">\u56de\u5230\u6b63\u7ecf\u7684\u753b\u98ce\u6765\u2014\u2014<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5b9e\u9645\u4e0a\uff0c\u5728Python\u4e2d\uff0c<\/span><code><span style=\"font-size: 15px;\">sys.path<\/span><\/code><span style=\"font-size: 15px;\">\u7ef4\u62a4\u7684\u5c31\u662f\u8fd9\u6837\u4e00\u4e2apy\u4ea4\u6613\u7684\u7ed3\u679c~~\uff08\u8bf6\uff1f\u597d\u50cf\u83ab\u540d\u53d1\u73b0\u4e86\u4ec0\u4e48\uff09<span style=\"text-decoration: line-through;\">\uff0c\u5176\u4e2d\u4fdd\u5b58\u7684\u5185\u5bb9\u5c31\u662f\u8fd9\u51e0\u5bb6\u201c\u6307\u5b9a\u9152\u697c\u201d\uff0c\u4e5f\u5c31\u662f\u5f53Python\u9047\u5230\u4e0d\u8ba4\u8bc6\u7684<\/span>\u513f\u5b50~~\u6a21\u5757\u65f6\uff0c\u5c31\u4f1a\u53bb\u5b9e\u5730\u67e5\u627e\u7684\u8def\u5f84\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u6211\u4eec\u4e5f\u53ef\u4ee5\u6253\u5370\u51fa\u6765\u770b\u770b\u5177\u4f53\u5185\u5bb9\uff1a<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\"><span style=\"color: #61aeee; line-height: 26px;\">&gt;<\/span><span style=\"line-height: 26px;\">&gt;&gt;\u00a0sys.path<\/span><br \/>\n[&#8221;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\python37.zip&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\DLLs&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages\\win32&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages\\win32\\lib&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages\\Pythonwin&#8217;]<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5927\u4f53\u4e0a\u5c31\u662f\u5b89\u88c5\u73af\u5883\u65f6\u914d\u7f6e\u7684\u4e00\u4e9b\u5305\u6240\u5728\u8def\u5f84\uff0c\u5176\u4e2d\u7b2c\u4e00\u4e2a\u5143\u7d20\u4ee3\u8868\u5f53\u524d\u6240\u6267\u884c\u811a\u672c\u6240\u5728\u7684\u8def\u5f84\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u4e5f\u6b63\u662f\u56e0\u6b64\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a\u76ee\u5f55\u4e0b\uff0c\u5927\u5927\u65b9\u65b9\u5730\u8c03\u7528\u5176\u4ed6\u6a21\u5757\u3002<\/span><\/section>\n<h3 style=\"font-weight: bold; font-size: 20px; margin: 0.6em 8px; padding-left: 10px; border-left: 2px solid #009688;\">3. \u5c06\u6a21\u5757\u4e0e\u540d\u5b57\u7ed1\u5b9a<\/h3>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u627e\u5230\u76f8\u5e94\u7684\u975e\u4eb2\u751f\u6a21\u5757\u8fd8\u6ca1\u5b8c\uff0c\u52a0\u8f7d\u4e86\u5305\u8fd8\u5f97\u4e3a\u5b83\u5206\u914d\u4e00\u4e2a\u6307\u5b9a\u7684\u540d\u5b57\uff0c\u6211\u4eec\u624d\u80fd\u5728\u811a\u672c\u4e2d\u4f7f\u7528\u8fd9\u4e2a\u6a21\u5757\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5f53\u7136\u591a\u6570\u65f6\u5019\u6211\u4eec\u611f\u77e5\u4e0d\u5230\u8fd9\u4e2a\u8fc7\u7a0b\uff0c\u56e0\u4e3a\u6211\u4eec\u5c31\u662f\u4e00\u4e2a<\/span><code><span style=\"font-size: 15px;\">import<\/span><\/code><span style=\"font-size: 15px;\">\u8d70\u5929\u4e0b\uff1a<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\"><span style=\"color: #c678dd; line-height: 26px;\">import<\/span>\u00a0sys<br \/>\n<span style=\"color: #c678dd; line-height: 26px;\">import<\/span>\u00a0os<br \/>\n<span style=\"color: #c678dd; line-height: 26px;\">import<\/span>\u00a0requests<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u6307\u5b9a\u7684\u6a21\u5757\u540d\uff0c\u5b9e\u9645\u4e0a\u4e5f\u662f\u6307\u5b9a\u7684\u7a0d\u540e\u7528\u6765\u8c03\u7528\u76f8\u5e94\u6a21\u5757\u7684\u5bf9\u8c61\u540d\u79f0\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u6362\u4e2a\u66f4\u660e\u663e\u7684\uff1a<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\"><span style=\"color: #c678dd; line-height: 26px;\">import<\/span>\u00a0requests\u00a0<span style=\"color: #c678dd; line-height: 26px;\">as<\/span>\u00a0req<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5982\u679c\u8fd9\u4e2a\u65f6\u5019\u53ea\u4f7f\u7528\u4e86\u7b2c\u4e8c\u79cd\u65b9\u5f0f\u6765\u5bfc\u5165<\/span><code><span style=\"font-size: 15px;\">requests<\/span><\/code><span style=\"font-size: 15px;\">\u8fd9\u4e2a\u6a21\u5757\uff0c\u90a3\u4e48\u5f88\u663e\u7136\u5728\u4e4b\u540e\u7684\u7a0b\u5e8f\u6d41\u7a0b\u4e2d\uff0c\u6211\u4eec\u90fd\u4e0d\u80fd\u4f7f\u7528<\/span><code><span style=\"font-size: 15px;\">requests<\/span><\/code><span style=\"font-size: 15px;\">\u8fd9\u4e2a\u540d\u5b57\u6765\u8c03\u7528\u5b83\u800c\u5e94\u5f53\u4f7f\u7528<\/span><code><span style=\"font-size: 15px;\">req<\/span><\/code><span style=\"font-size: 15px;\">\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u8fd9\u5c31\u662fPython\u5bfc\u5165\u8fc7\u7a0b\u4e2d\u7684\u540d\u79f0\u7ed1\u5b9a\uff0c\u672c\u8d28\u4e0a\u4e0e\u6b63\u5e38\u7684\u8d4b\u503c\u6ca1\u6709\u592a\u5927\u533a\u522b\uff0c\u52a0\u8f7d\u597d\u4e86\u4e00\u4e2a\u5bf9\u8c61\u4e4b\u540e\uff0c\u7136\u540e\u4e3a\u8fd9\u4e2a\u5bf9\u8c61\u8d4b\u4e00\u4e2a\u6307\u5b9a\u7684\u53d8\u91cf\u540d\u3002<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5f53\u7136\u5373\u4f7f\u662f\u5df2\u7ecf\u52a0\u8f7d\u597d\u7684\u6a21\u5757\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u5229\u7528\u8fd9\u4e2a\u540d\u79f0\u7ed1\u5b9a\u7684\u673a\u5236\u4e3a\u5b83\u4eec\u53d6\u522b\u540d\uff0c\u6bd4\u5982\uff1a<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\"><span style=\"color: #61aeee; line-height: 26px;\">&gt;<\/span><span style=\"line-height: 26px;\">&gt;&gt;\u00a0import\u00a0sys<\/span><br \/>\n<span style=\"color: #61aeee; line-height: 26px;\">&gt;<\/span><span style=\"line-height: 26px;\">&gt;&gt;\u00a0import\u00a0sys\u00a0as\u00a0sy<\/span><br \/>\n<span style=\"color: #61aeee; line-height: 26px;\">&gt;<\/span><span style=\"line-height: 26px;\">&gt;&gt;\u00a0sys.path<\/span><br \/>\n[&#8221;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\python37.zip&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\DLLs&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages\\win32&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages\\win32\\lib&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages\\Pythonwin&#8217;]<br \/>\n<span style=\"color: #61aeee; line-height: 26px;\">&gt;<\/span><span style=\"line-height: 26px;\">&gt;&gt;\u00a0sy.path<\/span><br \/>\n[&#8221;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\python37.zip&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\DLLs&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages\\win32&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages\\win32\\lib&#8217;,\u00a0&#8216;E:\\Anaconda\\Anaconda\\lib\\site-packages\\Pythonwin&#8217;]<br \/>\n<span style=\"color: #61aeee; line-height: 26px;\">&gt;<\/span><span style=\"line-height: 26px;\">&gt;&gt;\u00a0sys\u00a0==\u00a0sy<\/span><br \/>\nTrue<\/section>\n<h2 style=\"font-weight: bold; font-size: 22px; color: #009688; padding-left: 10px; margin: 1em 8px; border-left: 3px solid #009688;\">\u95ee\u9898\u89e3\u51b3<\/h2>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u597d\u4e86\uff0c\u4e0a\u9762\u5c31\u662f\u5bf9Python\u5bfc\u5165\u673a\u5236\u7684\u5927\u81f4\u4ecb\u7ecd\uff0c\u4f46\u662f\u8bf4\u4e86\u534a\u5929\uff0c\u6211\u4eec\u7684\u95ee\u9898\u8fd8\u6ca1\u6709\u89e3\u51b3\uff1a\u5728\u9879\u76ee\u4e2d\u5982\u4f55\u7b80\u6d01\u5730\u8de8\u6a21\u5757\u5bfc\u5165\u5176\u4ed6\u6a21\u5757\uff1f<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5728\u4f7f\u7528PyCharm\u7684\u65f6\u5019\u5012\u662f\u4e00\u5207\u987a\u9042\uff0c\u56e0\u4e3aPyCharm\u4f1a\u81ea\u52a8\u5c06\u9879\u76ee\u7684\u6839\u76ee\u5f55\u52a0\u5165\u5230\u5bfc\u5165\u7684\u641c\u7d22\u8def\u5f84\uff0c\u4e5f\u5c31\u662f\u8bf4\u50cf\u4e0b\u9762\u8fd9\u6837\u7684\u9879\u76ee\u7ed3\u6784\uff0c\u5728\u4efb\u610f\u6a21\u5757\u4e2d\u90fd\u53ef\u4ee5\u5f88\u81ea\u7136\u5730\u901a\u8fc7<\/span><code><span style=\"font-size: 15px;\">import A<\/span><\/code><span style=\"font-size: 15px;\">\u5bfc\u5165\u6a21\u5757A\uff0c\u7528<\/span><code><span style=\"font-size: 15px;\">import B<\/span><\/code><span style=\"font-size: 15px;\">\u5bfc\u5165\u6a21\u5757B\u3002<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\">Projetc_example<br \/>\n|&#8211; A<br \/>\n|&#8211; alpha.py<br \/>\n|&#8211; beta.py<br \/>\n|&#8211; B<br \/>\n|&#8211; theta.py<br \/>\n|&#8211; main<br \/>\n|&#8211; main.py<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u4f46\u662f\u5728\u975eIDE\u73af\u5883\u4e2d\u5462\uff1f\u6216\u8005\u8bf4\u5c31\u662f\u539f\u751f\u7684Python\u73af\u5883\u4e2d\u5462\uff1f<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5f88\u81ea\u7136\u5730\u6211\u4eec\u5c31\u4f1a\u60f3\u5230\uff1a\u90a3\u5c31\u624b\u52a8\u628a\u9879\u76ee\u6839\u76ee\u5f55\u52a0\u5165\u5230<\/span><code><span style=\"font-size: 15px;\">sys.path<\/span><\/code><span style=\"font-size: 15px;\">\u4e2d\u53bb\u561b\u3002\u8bf4\u8d77\u6765\u4e5f\u8ddfPyCharm\u505a\u7684\u4e8b\u6ca1\u5dee\u5440<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u53ef\u4ee5\uff0c\u8d2b\u9053\u770b\u4f60\u5f88\u6709\u609f\u6027\uff0c\u4e0d\u5982\u8ddf\u6211\u53bb\u5b66\u4fee\u4ed9\u5427<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u6240\u4ee5\u6211\u4eec\u5c31\u901a\u8fc7<\/span><code><span style=\"font-size: 15px;\">sys<\/span><\/code><span style=\"font-size: 15px;\">\u548c<\/span><code><span style=\"font-size: 15px;\">os<\/span><\/code><span style=\"font-size: 15px;\">\u4e24\u4e2a\u6a21\u5757\u4e03\u641e\u516b\u641e\uff08\u8fd9\u4e24\u4e2a\u6a21\u5757\u4ee5\u524d\u6709\u8fc7\u4ecb\u7ecd\uff0c\u4e0d\u518d\u8d58\u8ff0\uff09\u2014\u2014<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5654\u5654\u5654\u5654\u2014\u2014\u597d\u4f7f\u4e86<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\"><span style=\"color: #5c6370; font-style: italic; line-height: 26px;\">#\u00a0Peoject_example\/A\/alpha.py<\/span><br \/>\nprint(<span style=\"color: #98c379; line-height: 26px;\">&#8220;name:\u00a0&#8220;<\/span>\u00a0+\u00a0__name__)<br \/>\nprint(<span style=\"color: #98c379; line-height: 26px;\">&#8220;file:\u00a0&#8220;<\/span>\u00a0+\u00a0__file__)<\/p>\n<p><span style=\"line-height: 26px;\"><span style=\"color: #c678dd; line-height: 26px;\">def<\/span>\u00a0<span style=\"color: #61aeee; line-height: 26px;\">al<\/span><span style=\"line-height: 26px;\">()<\/span>:<\/span><br \/>\nprint(<span style=\"color: #98c379; line-height: 26px;\">&#8220;Importing\u00a0alpha\u00a0succeeded.&#8221;<\/span>)<\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><code><span style=\"font-size: 15px;\">main.py<\/span><\/code><span style=\"font-size: 15px;\">\u4e2d\u5219\u52a0\u5165\u4e00\u4e2a\u903b\u8f91\uff0c\u5728<\/span><code><span style=\"font-size: 15px;\">sys.path<\/span><\/code><span style=\"font-size: 15px;\">\u4e2d\u589e\u52a0\u4e00\u4e2a\u9879\u76ee\u6839\u76ee\u5f55\uff1a<\/span><\/section>\n<section style=\"overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; margin-left: 8px; margin-right: 8px;\"><span style=\"color: #c678dd; line-height: 26px;\">import<\/span>\u00a0os<br \/>\n<span style=\"color: #c678dd; line-height: 26px;\">import<\/span>\u00a0sys<\/p>\n<p>sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))<\/p>\n<p><span style=\"color: #c678dd; line-height: 26px;\">import<\/span>\u00a0A.alpha<\/p>\n<p>A.alpha.al()<\/p>\n<p><span style=\"color: #5c6370; font-style: italic; line-height: 26px;\">#\u00a0name:\u00a0A.alpha<\/span><br \/>\n<span style=\"color: #5c6370; font-style: italic; line-height: 26px;\">#\u00a0file:\u00a0*Project_exampleAalpha.py<\/span><br \/>\n<span style=\"color: #5c6370; font-style: italic; line-height: 26px;\">#\u00a0Importing\u00a0alpha\u00a0succeeded.<\/span><\/section>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u5927\u529f\u544a\u6210\uff0c\u98ce\u7d27\u626f\u547c~<\/span><\/section>\n<h2 style=\"font-weight: bold; font-size: 22px; color: #009688; padding-left: 10px; margin: 1em 8px; border-left: 3px solid #009688;\">\u603b\u7ed3<\/h2>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-left: 8px; margin-right: 8px;\"><span style=\"font-size: 15px;\">\u672c\u6587\u501f\u7531\u4e00\u4e2a\u6613\u73b0\u95ee\u9898\u5f15\u51fa\u5bf9Python\u5bfc\u5165\u673a\u5236\u7684\u4ecb\u7ecd\uff0c\u5b9e\u9645\u4e0a\u9650\u4e8e\u7bc7\u5e45\uff0c\u5bfc\u5165\u673a\u5236\u53ea\u662f\u505a\u4e86\u4e00\u4e2a\u6982\u89c8\uff0c\u5177\u4f53\u7684\u5185\u5bb9\u8fd8\u8981\u66f4\u52a0\u590d\u6742\u3002\u672c\u6587\u8bb2\u5230\u7684\u8fd9\u4e09\u6b65\u5219\u9002\u7528\u4e8e\u6bd4\u8f83\u5e38\u89c1\u7684\u60c5\u5f62\uff0c\u4e86\u89e3\u4e86\u8fd9\u4e09\u6b65\u4e5f\u8db3\u4ee5\u5e94\u4ed8\u5f88\u591a\u95ee\u9898\u4e86\u3002\u66f4\u591a\u5185\u5bb9\u8fd8\u662f\u7559\u5f85\u5927\u5bb6\u81ea\u884c\u63a2\u7d22\uff0c\u5f53\u7136\u540e\u7eed\u4e5f\u53ef\u80fd\u4f1a\u6709\u6587\u7ae0\u8fdb\u4e00\u6b65\u8bb2\u89e3\u2014\u2014\u8c01\u77e5\u9053\u5462\u54c8\u54c8~~\uff08\u53c8\u6316\u5751\u4e86\uff09~~<\/span><\/section>\n<h2 style=\"font-weight: bold; font-size: 22px; color: #009688; padding-left: 10px; margin: 1em 8px; border-left: 3px solid #009688;\">\u53c2\u8003\u8d44\u6599<\/h2>\n<section style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; text-align: justify; margin-bottom: 15px; margin-left: 8px; margin-right: 8px;\"><code><span style=\"font-size: 14px;\">https:\/\/docs.python.org\/zh-cn\/3\/reference\/import.html<\/span><\/code><\/section>\n<section style=\"margin-left: 8px; margin-right: 8px;\"><strong style=\"max-width: 100%; white-space: normal; color: #595959; font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light; letter-spacing: 2px; text-align: left; background-color: #ffffff; font-size: 14px; word-spacing: 2px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\u00a0<\/strong><\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Python\u51ed\u4ec0\u4e48\u5c31\u90a3\u4e48\u597d\u7528\u5462\uff1f \u6beb\u65e0\u7591\u95ee\uff0c\u5927\u91cf\u73b0\u6210\u53c8\u597d\u7528\u7684\u5185\u7f6e\/\u7b2c\u4e09\u65b9\u5e93\u529f\u4e0d\u53ef\u6ca1\u3002 \u90a3\u6211\u4eec\u662f\u600e\u4e48\u4f7f\u7528\u5b83\u4eec\u7684\u5462 &hellip; <a href=\"http:\/\/www.zhushiyao.com\/?p=44886\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u5b66\u4e86\u534a\u5929\uff0cimport \u5230\u5e95\u5728\u5e72\u5565\uff1f\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[8],"_links":{"self":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/44886"}],"collection":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44886"}],"version-history":[{"count":2,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/44886\/revisions"}],"predecessor-version":[{"id":44898,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/44886\/revisions\/44898"}],"wp:attachment":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44886"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}