{"id":117027,"date":"2026-10-22T11:32:33","date_gmt":"2026-10-22T03:32:33","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117027.html"},"modified":"2026-10-22T11:32:33","modified_gmt":"2026-10-22T03:32:33","slug":"python%e9%87%8f%e5%8c%96%e5%ae%9e%e6%93%8d%ef%bc%9a3%e6%ad%a5%e6%8a%8a%e4%ba%94%e6%a1%a3%e7%9b%98%e5%8f%a3%e5%8f%98%e6%88%90%e5%8f%af%e8%af%bb%e8%a1%a8%e6%a0%bc","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117027.html","title":{"rendered":"Python\u91cf\u5316\u5b9e\u64cd\uff1a3\u6b65\u628a\u4e94\u6863\u76d8\u53e3\u53d8\u6210\u53ef\u8bfb\u8868\u683c"},"content":{"rendered":"<h3>\u4e00\u3001\u4e3a\u4ec0\u4e48\u62ff\u5230\u4e86\u76d8\u53e3\u6570\u636e&#xff0c;\u5374\u8fd8\u662f\u770b\u4e0d\u61c2&#xff1f;<\/h3>\n<p>\u505a\u91cf\u5316\u4ea4\u6613\u65f6&#xff0c;\u5f88\u591a\u4eba\u4f1a\u4f7f\u7528 Python \u83b7\u53d6\u80a1\u7968\u884c\u60c5&#xff0c;\u518d\u8fdb\u4e00\u6b65\u5206\u6790\u4e70\u5356\u76d8\u7684\u6302\u5355\u60c5\u51b5\u3002<\/p>\n<p>\u4f46\u771f\u6b63\u62ff\u5230\u4e94\u6863\u76d8\u53e3\u6570\u636e\u540e&#xff0c;\u95ee\u9898\u624d\u521a\u521a\u5f00\u59cb\u3002<\/p>\n<p>\u4e70\u4e00\u5230\u4e70\u4e94\u662f\u4e00\u7ec4\u6570\u636e&#xff0c;\u5356\u4e00\u5230\u5356\u4e94\u662f\u53e6\u4e00\u7ec4\u6570\u636e\u3002\u5982\u679c\u7ee7\u7eed\u4f7f\u7528\u4f20\u7edf\u722c\u866b\u6216\u8005\u62fc\u63a5\u591a\u4e2a\u884c\u60c5\u63a5\u53e3&#xff0c;\u4e0d\u4ec5\u9700\u8981\u5904\u7406\u4e0d\u540c\u7684\u6570\u636e\u7ed3\u6784&#xff0c;\u8fd8\u53ef\u80fd\u9047\u5230\u63a5\u53e3\u4e0d\u7a33\u5b9a\u3001\u5b57\u6bb5\u4e0d\u4e00\u81f4\u3001\u8bf7\u6c42\u5931\u8d25\u7b49\u95ee\u9898\u3002<\/p>\n<p>QuantDash \u662f\u4e00\u4e2a\u63d0\u4f9b\u7edf\u4e00 Python SDK \u7684\u91cf\u5316\u6570\u636e\u5e73\u53f0&#xff0c;\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u6807\u51c6\u5316\u63a5\u53e3\u83b7\u53d6\u80a1\u7968\u884c\u60c5\u3001K \u7ebf\u548c\u4e94\u6863\u76d8\u53e3\u7b49\u6570\u636e\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4f7f\u7528 QuantDash \u83b7\u53d6\u771f\u5b9e\u63a5\u53e3\u5b9a\u4e49\u7684\u4e94\u6863\u76d8\u53e3\u6570\u636e&#xff0c;\u518d\u901a\u8fc7 Pandas \u6574\u7406\u6210\u4e00\u5f20\u6e05\u6670\u7684\u8868\u683c&#xff0c;\u6700\u540e\u5c06\u6574\u7406\u7ed3\u679c\u4ea4\u7ed9 DeepSeek API&#xff0c;\u751f\u6210\u8f85\u52a9\u5206\u6790\u610f\u89c1\u3002<\/p>\n<p>\u6574\u4e2a\u6d41\u7a0b\u5206\u4e3a\u4e09\u6b65&#xff1a;<\/p>\n<p>\u83b7\u53d6\u76d8\u53e3 \u2192 \u6574\u7406\u8868\u683c \u2192 AI \u89e3\u8bfb\u3002<\/p>\n<h3>\u4e8c\u3001\u7b2c\u4e00\u6b65&#xff1a;\u7528 Python \u83b7\u53d6\u4e94\u6863\u76d8\u53e3\u6570\u636e<\/h3>\n<p>\u5148\u5b89\u88c5\u9700\u8981\u7684 Python \u5e93&#xff1a;<\/p>\n<p>pip <span class=\"token function\">install<\/span> quantdash pandas openai<\/p>\n<p>\u5176\u4e2d&#xff1a;<\/p>\n<ul>\n<li>quantdash&#xff1a;\u83b7\u53d6\u6807\u51c6\u5316\u76d8\u53e3\u6570\u636e\u3002<\/li>\n<li>pandas&#xff1a;\u5c06\u4e70\u5356\u76d8\u6574\u7406\u6210\u8868\u683c\u3002<\/li>\n<li>openai&#xff1a;\u901a\u8fc7\u517c\u5bb9 OpenAI SDK \u7684\u65b9\u5f0f\u8c03\u7528 DeepSeek API\u3002<\/li>\n<\/ul>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u521d\u59cb\u5316 QuantDash \u5e76\u83b7\u53d6\u8d35\u5dde\u8305\u53f0\u7684\u4e94\u6863\u76d8\u53e3\u3002<\/p>\n<p><span class=\"token keyword\">import<\/span> os<br \/>\n<span class=\"token keyword\">from<\/span> quantdash <span class=\"token keyword\">import<\/span> QuantDash<\/p>\n<p><span class=\"token comment\"># \u521d\u59cb\u5316 QuantDash&#xff0c;API Key \u4ece\u73af\u5883\u53d8\u91cf\u8bfb\u53d6<\/span><br \/>\nqd <span class=\"token operator\">&#061;<\/span> QuantDash<span class=\"token punctuation\">(<\/span>api_key<span class=\"token operator\">&#061;<\/span>os<span class=\"token punctuation\">.<\/span>environ<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;QUANTDASH_API_KEY&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u83b7\u53d6\u8d35\u5dde\u8305\u53f0\u4e94\u6863\u76d8\u53e3<\/span><br \/>\ndepth <span class=\"token operator\">&#061;<\/span> qd<span class=\"token punctuation\">.<\/span>depth<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;600519.SH&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u539f\u59cb\u76d8\u53e3\u6570\u636e<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u80a1\u7968\u4ee3\u7801&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> depth<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;symbol&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5e02\u573a\u5730\u533a&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> depth<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;region&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u4e70\u76d8\u4ef7\u683c&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> depth<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;bid_prices&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5356\u76d8\u4ef7\u683c&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> depth<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;ask_prices&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd9\u91cc\u4f7f\u7528\u7684\u662f QuantDash \u6587\u6863\u4e2d\u5b9a\u4e49\u7684\u771f\u5b9e\u63a5\u53e3&#xff1a;<\/p>\n<p>qd<span class=\"token punctuation\">.<\/span>depth<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;600519.SH&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd4\u56de\u7684\u76d8\u53e3\u5bf9\u8c61\u5305\u542b\u4ee5\u4e0b\u5173\u952e\u5b57\u6bb5&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>symbol<\/td>\n<td>\u80a1\u7968\u4ee3\u7801<\/td>\n<\/tr>\n<tr>\n<td>region<\/td>\n<td>\u5e02\u573a\u5730\u533a<\/td>\n<\/tr>\n<tr>\n<td>bid_prices<\/td>\n<td>\u4e94\u6863\u4e70\u5165\u4ef7\u683c<\/td>\n<\/tr>\n<tr>\n<td>bid_volumes<\/td>\n<td>\u4e94\u6863\u4e70\u5165\u6302\u5355\u91cf<\/td>\n<\/tr>\n<tr>\n<td>ask_prices<\/td>\n<td>\u4e94\u6863\u5356\u51fa\u4ef7\u683c<\/td>\n<\/tr>\n<tr>\n<td>ask_volumes<\/td>\n<td>\u4e94\u6863\u5356\u51fa\u6302\u5355\u91cf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6709\u4e86\u8fd9\u4e9b\u6570\u636e&#xff0c;\u5c31\u4e0d\u9700\u8981\u81ea\u5df1\u4ece\u4e0d\u540c\u6570\u636e\u6e90\u62fc\u63a5\u4e70\u5356\u76d8\u5b57\u6bb5\u4e86\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f&#xff0c;\u5177\u4f53\u6570\u636e\u662f\u5426\u5b9e\u65f6\u53ef\u7528\u3001\u652f\u6301\u54ea\u4e9b\u5e02\u573a\u548c\u8d26\u6237\u6743\u9650&#xff0c;\u5e94\u4ee5 QuantDash \u5f53\u524d\u670d\u52a1\u8bf4\u660e\u4e3a\u51c6\u3002<\/p>\n<h3>\u4e09\u3001\u7b2c\u4e8c\u6b65&#xff1a;\u7528 Pandas \u628a\u4e70\u5356\u4e94\u6863\u6574\u7406\u6210\u8868\u683c<\/h3>\n<p>\u539f\u59cb\u76d8\u53e3\u901a\u5e38\u4ee5\u591a\u4e2a\u6570\u7ec4\u7684\u5f62\u5f0f\u4fdd\u5b58\u3002<\/p>\n<p>\u5982\u679c\u76f4\u63a5\u6253\u5370\u6574\u4e2a\u5bf9\u8c61&#xff0c;\u6570\u636e\u867d\u7136\u9f50\u5168&#xff0c;\u4f46\u4e0d\u591f\u76f4\u89c2\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 Pandas&#xff0c;\u5c06\u6bcf\u4e00\u6863\u7684\u4e70\u5356\u4ef7\u683c\u548c\u6302\u5355\u91cf\u5bf9\u5e94\u8d77\u6765\u3002<\/p>\n<p><span class=\"token keyword\">import<\/span> pandas <span class=\"token keyword\">as<\/span> pd<\/p>\n<p><span class=\"token comment\"># \u83b7\u53d6\u4e94\u6863\u76d8\u53e3<\/span><br \/>\ndepth <span class=\"token operator\">&#061;<\/span> qd<span class=\"token punctuation\">.<\/span>depth<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;600519.SH&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u5c06\u4e70\u5356\u76d8\u6574\u7406\u4e3a\u540c\u4e00\u5f20\u8868<\/span><br \/>\ndf <span class=\"token operator\">&#061;<\/span> pd<span class=\"token punctuation\">.<\/span>DataFrame<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;\u6863\u4f4d&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u4e00\u6863&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u4e8c\u6863&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u4e09\u6863&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u56db\u6863&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u4e94\u6863&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;\u4e70\u5165\u4ef7\u683c&#034;<\/span><span class=\"token punctuation\">:<\/span> depth<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;bid_prices&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;\u4e70\u5165\u6302\u5355\u91cf&#034;<\/span><span class=\"token punctuation\">:<\/span> depth<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;bid_volumes&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;\u5356\u51fa\u4ef7\u683c&#034;<\/span><span class=\"token punctuation\">:<\/span> depth<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;ask_prices&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;\u5356\u51fa\u6302\u5355\u91cf&#034;<\/span><span class=\"token punctuation\">:<\/span> depth<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;ask_volumes&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u8f93\u51fa\u5b8c\u6574\u8868\u683c<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>df<span class=\"token punctuation\">.<\/span>to_string<span class=\"token punctuation\">(<\/span>index<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6574\u7406\u4e4b\u540e&#xff0c;\u8868\u683c\u7ed3\u6784\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u6863\u4f4d\u4e70\u5165\u4ef7\u683c\u4e70\u5165\u6302\u5355\u91cf\u5356\u51fa\u4ef7\u683c\u5356\u51fa\u6302\u5355\u91cf<\/tr>\n<tbody>\n<tr>\n<td>\u4e00\u6863<\/td>\n<td align=\"right\">\u4e70\u4e00\u4ef7\u683c<\/td>\n<td align=\"right\">\u4e70\u4e00\u6570\u91cf<\/td>\n<td align=\"right\">\u5356\u4e00\u4ef7\u683c<\/td>\n<td align=\"right\">\u5356\u4e00\u6570\u91cf<\/td>\n<\/tr>\n<tr>\n<td>\u4e8c\u6863<\/td>\n<td align=\"right\">\u4e70\u4e8c\u4ef7\u683c<\/td>\n<td align=\"right\">\u4e70\u4e8c\u6570\u91cf<\/td>\n<td align=\"right\">\u5356\u4e8c\u4ef7\u683c<\/td>\n<td align=\"right\">\u5356\u4e8c\u6570\u91cf<\/td>\n<\/tr>\n<tr>\n<td>\u4e09\u6863<\/td>\n<td align=\"right\">\u4e70\u4e09\u4ef7\u683c<\/td>\n<td align=\"right\">\u4e70\u4e09\u6570\u91cf<\/td>\n<td align=\"right\">\u5356\u4e09\u4ef7\u683c<\/td>\n<td align=\"right\">\u5356\u4e09\u6570\u91cf<\/td>\n<\/tr>\n<tr>\n<td>\u56db\u6863<\/td>\n<td align=\"right\">\u4e70\u56db\u4ef7\u683c<\/td>\n<td align=\"right\">\u4e70\u56db\u6570\u91cf<\/td>\n<td align=\"right\">\u5356\u56db\u4ef7\u683c<\/td>\n<td align=\"right\">\u5356\u56db\u6570\u91cf<\/td>\n<\/tr>\n<tr>\n<td>\u4e94\u6863<\/td>\n<td align=\"right\">\u4e70\u4e94\u4ef7\u683c<\/td>\n<td align=\"right\">\u4e70\u4e94\u6570\u91cf<\/td>\n<td align=\"right\">\u5356\u4e94\u4ef7\u683c<\/td>\n<td align=\"right\">\u5356\u4e94\u6570\u91cf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8&#xff1a;\u8868\u683c\u4e2d\u7684\u4ef7\u683c\u548c\u6570\u91cf\u4e3a\u5b57\u6bb5\u793a\u610f&#xff0c;\u8fd0\u884c\u4ee3\u7801\u540e\u5c06\u5c55\u793a\u63a5\u53e3\u5b9e\u9645\u8fd4\u56de\u7684\u6570\u636e\u3002<\/p>\n<p>\u8fd9\u6837\u4e00\u6765&#xff0c;\u4e70\u5356\u76d8\u7684\u5bf9\u5e94\u5173\u7cfb\u5c31\u975e\u5e38\u6e05\u695a\u4e86\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<ul>\n<li>\u4e70\u4e00\u4ef7\u683c\u4e0e\u5356\u4e00\u4ef7\u683c\u4e4b\u95f4\u7684\u5dee\u503c&#xff0c;\u53ef\u4ee5\u5e2e\u52a9\u89c2\u5bdf\u5f53\u524d\u6700\u4f18\u4e70\u5356\u62a5\u4ef7\u7684\u4ef7\u5dee\u3002<\/li>\n<li>\u4e70\u76d8\u548c\u5356\u76d8\u7684\u6302\u5355\u91cf&#xff0c;\u53ef\u4ee5\u7528\u4e8e\u5206\u6790\u5f53\u524d\u53ef\u89c1\u76d8\u53e3\u7684\u6570\u91cf\u5206\u5e03\u3002<\/li>\n<li>\u4e0d\u540c\u6863\u4f4d\u7684\u4ef7\u683c\u53d8\u5316&#xff0c;\u53ef\u4ee5\u4f5c\u4e3a\u540e\u7eed\u76d8\u53e3\u7279\u5f81\u8ba1\u7b97\u7684\u8f93\u5165\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c\u60f3\u8fdb\u4e00\u6b65\u5206\u6790&#xff0c;\u8fd8\u53ef\u4ee5\u4f7f\u7528 Pandas \u8ba1\u7b97\u4e70\u5356\u4ef7\u5dee\u548c\u53ef\u89c1\u4e94\u6863\u6302\u5355\u91cf\u5dee\u5f02\u3002<\/p>\n<p><span class=\"token comment\"># \u8ba1\u7b97\u6700\u4f18\u4e70\u5356\u62a5\u4ef7\u4ef7\u5dee<\/span><br \/>\ndf<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u4e70\u5356\u4ef7\u5dee&#034;<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> df<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u5356\u51fa\u4ef7\u683c&#034;<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#8211;<\/span> df<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u4e70\u5165\u4ef7\u683c&#034;<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token comment\"># \u8ba1\u7b97\u4e94\u6863\u53ef\u89c1\u6302\u5355\u91cf\u7684\u603b\u548c<\/span><br \/>\ntotal_bid_volume <span class=\"token operator\">&#061;<\/span> df<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u4e70\u5165\u6302\u5355\u91cf&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">sum<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\ntotal_ask_volume <span class=\"token operator\">&#061;<\/span> df<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u5356\u51fa\u6302\u5355\u91cf&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">sum<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u4e94\u6863\u4e70\u76d8\u6302\u5355\u91cf\u5408\u8ba1&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> total_bid_volume<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u4e94\u6863\u5356\u76d8\u6302\u5355\u91cf\u5408\u8ba1&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> total_ask_volume<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5404\u6863\u4e70\u5356\u62a5\u4ef7\u4ef7\u5dee&#xff1a;&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>df<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u6863\u4f4d&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u4e70\u5356\u4ef7\u5dee&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>to_string<span class=\"token punctuation\">(<\/span>index<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd9\u91cc\u9700\u8981\u533a\u5206\u4e24\u4e2a\u6982\u5ff5&#xff1a;<\/p>\n<p>\u6700\u4f18\u4e70\u5356\u4ef7\u5dee\u901a\u5e38\u6307\u5356\u4e00\u4ef7\u683c\u51cf\u53bb\u4e70\u4e00\u4ef7\u683c&#xff0c;\u800c\u4e0a\u9762\u4ee3\u7801\u4e2d\u7684 \u4e70\u5356\u4ef7\u5dee \u662f\u6bcf\u4e2a\u5bf9\u5e94\u6863\u4f4d\u7684\u5356\u4ef7\u51cf\u4e70\u4ef7\u3002<\/p>\n<p>\u4e94\u6863\u6302\u5355\u91cf\u4e5f\u53ea\u4ee3\u8868\u5f53\u524d\u63a5\u53e3\u8fd4\u56de\u7684\u53ef\u89c1\u6302\u5355&#xff0c;\u4e0d\u7b49\u4e8e\u5168\u90e8\u5e02\u573a\u6d41\u52a8\u6027&#xff0c;\u66f4\u4e0d\u80fd\u76f4\u63a5\u4f5c\u4e3a\u672a\u6765\u6da8\u8dcc\u7684\u7ed3\u8bba\u3002<\/p>\n<h3>\u56db\u3001\u7b2c\u4e09\u6b65&#xff1a;\u63a5\u5165 DeepSeek&#xff0c;\u8ba9 AI \u8f85\u52a9\u89e3\u8bfb\u76d8\u53e3<\/h3>\n<p>\u8868\u683c\u6574\u7406\u597d\u4e4b\u540e&#xff0c;\u8fd8\u53ef\u4ee5\u628a\u5b83\u4ea4\u7ed9 DeepSeek API&#xff0c;\u8ba9\u5927\u6a21\u578b\u6839\u636e\u6570\u636e\u603b\u7ed3\u76d8\u53e3\u7279\u5f81\u3002<\/p>\n<p>\u5148\u914d\u7f6e DeepSeek API Key&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">DEEPSEEK_API_KEY<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u4f60\u7684DeepSeek_API_Key&#034;<\/span><\/p>\n<p>\u7136\u540e\u8fd0\u884c\u4e0b\u9762\u7684\u4ee3\u7801\u3002<\/p>\n<p><span class=\"token keyword\">import<\/span> os<br \/>\n<span class=\"token keyword\">from<\/span> openai <span class=\"token keyword\">import<\/span> OpenAI<\/p>\n<p><span class=\"token comment\"># \u521d\u59cb\u5316 DeepSeek API \u5ba2\u6237\u7aef<\/span><br \/>\nclient <span class=\"token operator\">&#061;<\/span> OpenAI<span class=\"token punctuation\">(<\/span><br \/>\n    api_key<span class=\"token operator\">&#061;<\/span>os<span class=\"token punctuation\">.<\/span>environ<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;DEEPSEEK_API_KEY&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    base_url<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;https:\/\/api.deepseek.com&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u5c06\u76d8\u53e3\u8868\u683c\u8f6c\u6362\u4e3a\u6587\u672c<\/span><br \/>\ntable_text <span class=\"token operator\">&#061;<\/span> df<span class=\"token punctuation\">.<\/span>to_string<span class=\"token punctuation\">(<\/span>index<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u7ec4\u7ec7\u5206\u6790\u63d0\u793a\u8bcd<\/span><br \/>\nprompt <span class=\"token operator\">&#061;<\/span> <span class=\"token string-interpolation\"><span class=\"token string\">f&#034;&#034;&#034;<br \/>\n\u4f60\u662f\u4e00\u540d\u91cf\u5316\u7814\u7a76\u52a9\u624b&#xff0c;\u8bf7\u6839\u636e\u4ee5\u4e0b\u4e94\u6863\u76d8\u53e3\u6570\u636e\u8fdb\u884c\u5206\u6790\u3002<\/p>\n<p>\u8bf7\u91cd\u70b9\u8bf4\u660e&#xff1a;<br \/>\n1. \u4e70\u5356\u76d8\u7684\u6302\u5355\u91cf\u5206\u5e03\u3002<br \/>\n2. \u4e70\u4e00\u4e0e\u5356\u4e00\u4e4b\u95f4\u7684\u4ef7\u5dee\u3002<br \/>\n3. \u5f53\u524d\u76d8\u53e3\u80fd\u591f\u652f\u6301\u54ea\u4e9b\u89c2\u5bdf\u3002<br \/>\n4. \u54ea\u4e9b\u7ed3\u8bba\u65e0\u6cd5\u4ec5\u51ed\u4e94\u6863\u76d8\u53e3\u5f97\u51fa\u3002<\/p>\n<p>\u4e0d\u8981\u7f16\u9020\u6570\u636e&#xff0c;\u4e0d\u8981\u5c06\u6302\u5355\u91cf\u76f4\u63a5\u7b49\u540c\u4e8e\u771f\u5b9e\u4e70\u5356\u610f\u56fe&#xff0c;<br \/>\n\u4e5f\u4e0d\u8981\u5c06\u76d8\u53e3\u89c2\u5bdf\u76f4\u63a5\u8868\u8ff0\u4e3a\u786e\u5b9a\u7684\u6da8\u8dcc\u9884\u6d4b\u3002<\/p>\n<p>\u4e94\u6863\u76d8\u53e3\u6570\u636e&#xff1a;<br \/>\n<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>table_text<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\"><br \/>\n&#034;&#034;&#034;<\/span><\/span><\/p>\n<p><span class=\"token comment\"># \u8c03\u7528 DeepSeek API<\/span><br \/>\nresponse <span class=\"token operator\">&#061;<\/span> client<span class=\"token punctuation\">.<\/span>chat<span class=\"token punctuation\">.<\/span>completions<span class=\"token punctuation\">.<\/span>create<span class=\"token punctuation\">(<\/span><br \/>\n    model<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;deepseek-chat&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    messages<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">[<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string\">&#034;role&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;user&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string\">&#034;content&#034;<\/span><span class=\"token punctuation\">:<\/span> prompt<br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    stream<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u8f93\u51fa AI \u5206\u6790\u7ed3\u679c<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">.<\/span>choices<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>message<span class=\"token punctuation\">.<\/span>content<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f7f\u7528 DeepSeek \u7684 OpenAI \u517c\u5bb9\u63a5\u53e3&#xff0c;\u5c06 Pandas \u8868\u683c\u8f6c\u6362\u4e3a\u6587\u672c\u540e\u53d1\u9001\u7ed9\u6a21\u578b\u3002<\/p>\n<p>\u6700\u7ec8&#xff0c;\u4f60\u53ef\u4ee5\u8ba9 AI \u5e2e\u5fd9\u603b\u7ed3&#xff1a;<\/p>\n<ul>\n<li>\u4e70\u5356\u76d8\u7684\u6302\u5355\u91cf\u5206\u5e03\u662f\u5426\u5b58\u5728\u660e\u663e\u5dee\u5f02\u3002<\/li>\n<li>\u5f53\u524d\u6700\u4f18\u4e70\u5356\u62a5\u4ef7\u7684\u4ef7\u5dee\u662f\u591a\u5c11\u3002<\/li>\n<li>\u54ea\u4e9b\u76d8\u53e3\u7279\u5f81\u503c\u5f97\u8fdb\u4e00\u6b65\u7814\u7a76\u3002<\/li>\n<li>\u8fd8\u9700\u8981\u54ea\u4e9b\u6570\u636e\u624d\u80fd\u9a8c\u8bc1\u4ea4\u6613\u5047\u8bbe\u3002<\/li>\n<\/ul>\n<p>\u9700\u8981\u6ce8\u610f&#xff1a;AI \u8f93\u51fa\u7684\u662f\u57fa\u4e8e\u8f93\u5165\u6570\u636e\u7684\u8f85\u52a9\u89e3\u8bfb&#xff0c;\u4e0d\u662f\u7ecf\u8fc7\u9a8c\u8bc1\u7684\u4ea4\u6613\u4fe1\u53f7\u3002 \u5b9e\u9645\u4ea4\u6613\u7b56\u7565\u4ecd\u9700\u8981\u7ed3\u5408\u5386\u53f2\u6570\u636e\u56de\u6d4b\u3001\u4ea4\u6613\u6210\u672c\u3001\u6ed1\u70b9\u548c\u98ce\u9669\u63a7\u5236\u3002<\/p>\n<h3>\u4e94\u3001\u4e3a\u4ec0\u4e48\u63a8\u8350 QuantDash&#xff0c;\u800c\u4e0d\u662f\u81ea\u5df1\u62fc\u63a5\u4f20\u7edf\u884c\u60c5\u63a5\u53e3&#xff1f;<\/h3>\n<p>\u5bf9\u4e8e Python \u91cf\u5316\u5f00\u53d1\u8005\u800c\u8a00&#xff0c;\u83b7\u53d6\u6570\u636e\u53ea\u662f\u7b2c\u4e00\u6b65&#xff0c;\u771f\u6b63\u8017\u65f6\u7684\u5f80\u5f80\u662f\u63a5\u53e3\u7ef4\u62a4\u3001\u5b57\u6bb5\u7edf\u4e00\u548c\u6570\u636e\u6574\u7406\u3002<\/p>\n<table>\n<tr>\u5bf9\u6bd4\u7ef4\u5ea6QuantDash \u65b9\u6848\u4f20\u7edf\u722c\u866b\u6216\u62fc\u63a5\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>Python \u83b7\u53d6\u4e94\u6863\u76d8\u53e3<\/td>\n<td>\u4f7f\u7528 qd.depth.get()<\/td>\n<td>\u9700\u8981\u6839\u636e\u6570\u636e\u6e90\u7f16\u5199\u8bf7\u6c42\u903b\u8f91<\/td>\n<\/tr>\n<tr>\n<td>\u4e70\u5356\u4e94\u6863\u5b57\u6bb5<\/td>\n<td>\u4f7f\u7528\u6587\u6863\u5b9a\u4e49\u7684\u7edf\u4e00\u5b57\u6bb5<\/td>\n<td>\u53ef\u80fd\u9700\u8981\u81ea\u884c\u9002\u914d\u4e0d\u540c\u5b57\u6bb5<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u6574\u7406<\/td>\n<td>\u76f4\u63a5\u8f6c\u6362\u4e3a Pandas DataFrame<\/td>\n<td>\u53ef\u80fd\u9700\u8981\u989d\u5916\u6e05\u6d17\u548c\u91cd\u7ec4<\/td>\n<\/tr>\n<tr>\n<td>\u63a5\u53e3\u7ef4\u62a4<\/td>\n<td>\u4f9d\u8d56\u5e73\u53f0\u63d0\u4f9b\u7684 SDK \u548c\u670d\u52a1<\/td>\n<td>\u9700\u8981\u81ea\u884c\u7ef4\u62a4\u5404\u4e2a\u6570\u636e\u6e90<\/td>\n<\/tr>\n<tr>\n<td>\u8de8\u5e02\u573a\u5f00\u53d1<\/td>\n<td>\u7edf\u4e00\u6807\u7684\u4ee3\u7801\u683c\u5f0f\u6709\u52a9\u4e8e\u590d\u7528\u4ee3\u7801<\/td>\n<td>\u53ef\u80fd\u9700\u8981\u5904\u7406\u4e0d\u540c\u5e02\u573a\u7684\u4ee3\u7801\u89c4\u5219<\/td>\n<\/tr>\n<tr>\n<td>DeepSeek \u5206\u6790<\/td>\n<td>\u53ef\u4ee5\u5c06\u6574\u7406\u540e\u7684\u8868\u683c\u76f4\u63a5\u4f20\u7ed9\u6a21\u578b<\/td>\n<td>\u901a\u5e38\u9700\u8981\u5148\u5b8c\u6210\u6570\u636e\u9002\u914d<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u53ef\u9760\u6027<\/td>\n<td>\u4ee5\u5e73\u53f0\u5b9e\u9645\u670d\u52a1\u80fd\u529b\u4e3a\u51c6<\/td>\n<td>\u53d6\u51b3\u4e8e\u5404\u81ea\u7684\u6570\u636e\u6e90\u548c\u7ef4\u62a4\u65b9\u5f0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>QuantDash \u7684\u4ef7\u503c\u4e0d\u53ea\u662f\u5c11\u5199\u51e0\u884c\u4ee3\u7801&#xff0c;\u800c\u662f\u5c3d\u53ef\u80fd\u51cf\u5c11\u884c\u60c5\u83b7\u53d6\u4e0e\u6570\u636e\u6574\u7406\u4e4b\u95f4\u7684\u91cd\u590d\u5de5\u4f5c\u3002<\/p>\n<p>\u5bf9\u4e8e\u9700\u8981\u4e0d\u65ad\u8fed\u4ee3\u7b56\u7565\u7684\u5f00\u53d1\u8005&#xff0c;\u8fd9\u610f\u5473\u7740\u53ef\u4ee5\u628a\u66f4\u591a\u65f6\u95f4\u6295\u5165\u5230\u7279\u5f81\u5de5\u7a0b\u3001\u7b56\u7565\u9a8c\u8bc1\u548c\u98ce\u9669\u7ba1\u7406\u4e2d\u3002<\/p>\n<h3>\u516d\u3001\u5e38\u89c1\u95ee\u9898 FAQ<\/h3>\n<h4>Q1&#xff1a;Python \u83b7\u53d6\u80a1\u7968\u4e94\u6863\u76d8\u53e3&#xff0c;\u5fc5\u987b\u4f7f\u7528\u722c\u866b\u5417&#xff1f;<\/h4>\n<p>\u4e0d\u4e00\u5b9a\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528 QuantDash&#xff0c;\u53ef\u4ee5\u6309\u7167\u5b98\u65b9\u6587\u6863\u901a\u8fc7 qd.depth.get(&#034;600519.SH&#034;) \u83b7\u53d6\u4e94\u6863\u76d8\u53e3&#xff0c;\u4e0d\u9700\u8981\u81ea\u5df1\u7f16\u5199\u7f51\u9875\u722c\u866b\u3002<\/p>\n<p>\u521d\u59cb\u5316\u65b9\u6cd5\u3001\u5176\u4ed6\u53ef\u7528\u63a5\u53e3\u53ca\u4f7f\u7528\u8bf4\u660e&#xff0c;\u53ef\u4ee5\u67e5\u770b QuantDash \u6280\u672f\u6587\u6863\u3002<\/p>\n<h4>Q2&#xff1a;\u83b7\u53d6\u76d8\u53e3\u4e4b\u540e&#xff0c;\u5982\u4f55\u8fdb\u4e00\u6b65\u5f00\u53d1\u91cf\u5316\u5206\u6790\u7a0b\u5e8f&#xff1f;<\/h4>\n<p>\u53ef\u4ee5\u5148\u5c06\u76d8\u53e3\u6570\u636e\u6574\u7406\u4e3a Pandas DataFrame&#xff0c;\u518d\u8ba1\u7b97\u4ef7\u5dee\u3001\u6302\u5355\u91cf\u5dee\u5f02\u7b49\u7279\u5f81&#xff0c;\u6700\u540e\u7ed3\u5408\u5386\u53f2\u884c\u60c5\u8fdb\u884c\u56de\u6d4b\u3002<\/p>\n<p>\u5982\u679c\u60f3\u4e86\u89e3 SDK \u7684\u66f4\u591a\u7528\u6cd5&#xff0c;\u4e5f\u53ef\u4ee5\u8bbf\u95ee QuantDash GitHub \u9879\u76ee&#xff0c;\u67e5\u770b\u9879\u76ee\u4ee3\u7801\u548c\u76f8\u5173\u8bf4\u660e\u3002<\/p>\n<h3>\u4e03\u3001\u7ed3\u5c3e&#xff1a;\u628a\u65f6\u95f4\u82b1\u5728\u7b56\u7565\u4e0a&#xff0c;\u800c\u4e0d\u662f\u91cd\u590d\u6574\u7406\u6570\u636e<\/h3>\n<p>\u5982\u679c\u4f60\u6b63\u5728\u5f00\u53d1 Python \u91cf\u5316\u7b56\u7565&#xff0c;\u6216\u8005\u5e0c\u671b\u4f7f\u7528 DeepSeek \u8f85\u52a9\u5206\u6790\u80a1\u7968\u76d8\u53e3&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5\u628a\u6570\u636e\u83b7\u53d6\u3001\u8868\u683c\u6574\u7406\u548c AI \u5206\u6790\u4e32\u6210\u4e00\u6761\u5de5\u4f5c\u6d41\u3002<\/p>\n<p>QuantDash \u6280\u672f\u6587\u6863 \u2014 \u67e5\u770b Python SDK\u3001REST API \u548c\u6570\u636e\u63a5\u53e3\u8bf4\u660e\u3002<\/p>\n<p>\u524d\u5f80\u5b98\u7f51\u514d\u8d39\u6ce8\u518c\u5e76\u83b7\u53d6 API Key&#xff0c;\u5373\u53ef\u6839\u636e\u5e73\u53f0\u5f53\u524d\u63d0\u4f9b\u7684\u670d\u52a1\u548c\u4f7f\u7528\u89c4\u5219\u5f00\u59cb\u4f53\u9a8c\u3002<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u8fdb\u4e00\u6b65\u5b9e\u73b0\u76d8\u53e3\u53ef\u89c6\u5316\u3001\u6279\u91cf\u5206\u6790\u6216\u81ea\u52a8\u751f\u6210\u7814\u7a76\u62a5\u544a&#xff0c;\u6b22\u8fce\u5728\u6587\u7ae0\u4e0b\u65b9\u7559\u8a00\u8ba8\u8bba&#xff0c;\u4ea4\u6d41\u83b7\u53d6\u5b8c\u6574\u6e90\u7801\u7684\u5b9e\u73b0\u601d\u8def\u3002<\/p>\n<p>\u672c\u6587\u4ec5\u7528\u4e8e Python \u6570\u636e\u5904\u7406\u4e0e\u91cf\u5316\u7814\u7a76\u6280\u672f\u4ea4\u6d41&#xff0c;\u4e0d\u6784\u6210\u6295\u8d44\u5efa\u8bae\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4e3a\u4ec0\u4e48\u62ff\u5230\u4e86\u76d8\u53e3\u6570\u636e&#xff0c;\u5374\u8fd8\u662f\u770b\u4e0d\u61c2&#xff1f;<br \/>\n\u505a\u91cf\u5316\u4ea4\u6613\u65f6&#xff0c;\u5f88\u591a\u4eba\u4f1a\u4f7f\u7528 Python \u83b7\u53d6\u80a1\u7968\u884c\u60c5&#xff0c;\u518d\u8fdb\u4e00\u6b65\u5206\u6790\u4e70\u5356\u76d8\u7684\u6302\u5355\u60c5\u51b5\u3002<br \/>\n\u4f46\u771f\u6b63\u62ff\u5230\u4e94\u6863\u76d8\u53e3\u6570\u636e\u540e&#xff0c;\u95ee\u9898\u624d\u521a\u521a\u5f00\u59cb\u3002<br \/>\n\u4e70\u4e00\u5230\u4e70\u4e94\u662f\u4e00\u7ec4\u6570\u636e&#xff0c;\u5356\u4e00\u5230\u5356\u4e94\u662f\u53e6\u4e00\u7ec4\u6570\u636e\u3002\u5982\u679c\u7ee7\u7eed\u4f7f\u7528\u4f20\u7edf\u722c\u866b\u6216\u8005\u62fc\u63a5\u591a\u4e2a\u884c\u60c5\u63a5\u53e3&#xff0c;\u4e0d\u4ec5\u9700\u8981\u5904\u7406\u4e0d\u540c\u7684\u6570\u636e\u7ed3\u6784&#xff0c;\u8fd8\u53ef\u80fd\u9047\u5230\u63a5\u53e3\u4e0d\u7a33\u5b9a\u3001\u5b57\u6bb5\u4e0d\u4e00\u81f4\u3001\u8bf7\u6c42\u5931\u8d25\u7b49\u95ee\u9898\u3002<br \/>\nQuantDash<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9098,9879,11350,4278,81,190],"topic":[],"class_list":["post-117027","post","type-post","status-publish","format-standard","hentry","category-server","tag-it","tag-quantdash","tag-11350","tag-pandas","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\u91cf\u5316\u5b9e\u64cd\uff1a3\u6b65\u628a\u4e94\u6863\u76d8\u53e3\u53d8\u6210\u53ef\u8bfb\u8868\u683c - \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\/117027.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u91cf\u5316\u5b9e\u64cd\uff1a3\u6b65\u628a\u4e94\u6863\u76d8\u53e3\u53d8\u6210\u53ef\u8bfb\u8868\u683c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u4e3a\u4ec0\u4e48\u62ff\u5230\u4e86\u76d8\u53e3\u6570\u636e&#xff0c;\u5374\u8fd8\u662f\u770b\u4e0d\u61c2&#xff1f; \u505a\u91cf\u5316\u4ea4\u6613\u65f6&#xff0c;\u5f88\u591a\u4eba\u4f1a\u4f7f\u7528 Python \u83b7\u53d6\u80a1\u7968\u884c\u60c5&#xff0c;\u518d\u8fdb\u4e00\u6b65\u5206\u6790\u4e70\u5356\u76d8\u7684\u6302\u5355\u60c5\u51b5\u3002 \u4f46\u771f\u6b63\u62ff\u5230\u4e94\u6863\u76d8\u53e3\u6570\u636e\u540e&#xff0c;\u95ee\u9898\u624d\u521a\u521a\u5f00\u59cb\u3002 \u4e70\u4e00\u5230\u4e70\u4e94\u662f\u4e00\u7ec4\u6570\u636e&#xff0c;\u5356\u4e00\u5230\u5356\u4e94\u662f\u53e6\u4e00\u7ec4\u6570\u636e\u3002\u5982\u679c\u7ee7\u7eed\u4f7f\u7528\u4f20\u7edf\u722c\u866b\u6216\u8005\u62fc\u63a5\u591a\u4e2a\u884c\u60c5\u63a5\u53e3&#xff0c;\u4e0d\u4ec5\u9700\u8981\u5904\u7406\u4e0d\u540c\u7684\u6570\u636e\u7ed3\u6784&#xff0c;\u8fd8\u53ef\u80fd\u9047\u5230\u63a5\u53e3\u4e0d\u7a33\u5b9a\u3001\u5b57\u6bb5\u4e0d\u4e00\u81f4\u3001\u8bf7\u6c42\u5931\u8d25\u7b49\u95ee\u9898\u3002 QuantDash\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117027.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-22T03:32:33+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117027.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117027.html\",\"name\":\"Python\u91cf\u5316\u5b9e\u64cd\uff1a3\u6b65\u628a\u4e94\u6863\u76d8\u53e3\u53d8\u6210\u53ef\u8bfb\u8868\u683c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-22T03:32:33+00:00\",\"dateModified\":\"2026-10-22T03:32:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117027.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117027.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117027.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u91cf\u5316\u5b9e\u64cd\uff1a3\u6b65\u628a\u4e94\u6863\u76d8\u53e3\u53d8\u6210\u53ef\u8bfb\u8868\u683c\"}]},{\"@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\u91cf\u5316\u5b9e\u64cd\uff1a3\u6b65\u628a\u4e94\u6863\u76d8\u53e3\u53d8\u6210\u53ef\u8bfb\u8868\u683c - \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\/117027.html","og_locale":"zh_CN","og_type":"article","og_title":"Python\u91cf\u5316\u5b9e\u64cd\uff1a3\u6b65\u628a\u4e94\u6863\u76d8\u53e3\u53d8\u6210\u53ef\u8bfb\u8868\u683c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u4e3a\u4ec0\u4e48\u62ff\u5230\u4e86\u76d8\u53e3\u6570\u636e&#xff0c;\u5374\u8fd8\u662f\u770b\u4e0d\u61c2&#xff1f; \u505a\u91cf\u5316\u4ea4\u6613\u65f6&#xff0c;\u5f88\u591a\u4eba\u4f1a\u4f7f\u7528 Python \u83b7\u53d6\u80a1\u7968\u884c\u60c5&#xff0c;\u518d\u8fdb\u4e00\u6b65\u5206\u6790\u4e70\u5356\u76d8\u7684\u6302\u5355\u60c5\u51b5\u3002 \u4f46\u771f\u6b63\u62ff\u5230\u4e94\u6863\u76d8\u53e3\u6570\u636e\u540e&#xff0c;\u95ee\u9898\u624d\u521a\u521a\u5f00\u59cb\u3002 \u4e70\u4e00\u5230\u4e70\u4e94\u662f\u4e00\u7ec4\u6570\u636e&#xff0c;\u5356\u4e00\u5230\u5356\u4e94\u662f\u53e6\u4e00\u7ec4\u6570\u636e\u3002\u5982\u679c\u7ee7\u7eed\u4f7f\u7528\u4f20\u7edf\u722c\u866b\u6216\u8005\u62fc\u63a5\u591a\u4e2a\u884c\u60c5\u63a5\u53e3&#xff0c;\u4e0d\u4ec5\u9700\u8981\u5904\u7406\u4e0d\u540c\u7684\u6570\u636e\u7ed3\u6784&#xff0c;\u8fd8\u53ef\u80fd\u9047\u5230\u63a5\u53e3\u4e0d\u7a33\u5b9a\u3001\u5b57\u6bb5\u4e0d\u4e00\u81f4\u3001\u8bf7\u6c42\u5931\u8d25\u7b49\u95ee\u9898\u3002 QuantDash","og_url":"https:\/\/www.wsisp.com\/helps\/117027.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-22T03:32:33+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/117027.html","url":"https:\/\/www.wsisp.com\/helps\/117027.html","name":"Python\u91cf\u5316\u5b9e\u64cd\uff1a3\u6b65\u628a\u4e94\u6863\u76d8\u53e3\u53d8\u6210\u53ef\u8bfb\u8868\u683c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-22T03:32:33+00:00","dateModified":"2026-10-22T03:32:33+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117027.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117027.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117027.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Python\u91cf\u5316\u5b9e\u64cd\uff1a3\u6b65\u628a\u4e94\u6863\u76d8\u53e3\u53d8\u6210\u53ef\u8bfb\u8868\u683c"}]},{"@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\/117027","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=117027"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117027\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117027"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}