{"id":1591,"date":"2024-11-03T07:57:00","date_gmt":"2024-11-02T23:57:00","guid":{"rendered":"https:\/\/blog.laoyulaoyu.top\/?p=1591"},"modified":"2024-10-09T11:23:23","modified_gmt":"2024-10-09T03:23:23","slug":"%e6%97%a5%e5%86%85%e4%ba%a4%e6%98%93%e9%9d%a9%e5%91%bd%ef%bc%9a%e9%9d%a2%e5%90%91%e7%8e%b0%e4%bb%a3%e4%ba%a4%e6%98%93%e8%80%85%e7%9a%84-python-%e9%a9%b1%e5%8a%a8%e5%88%86%e6%9e%90%ef%bc%88%e9%99%84","status":"publish","type":"post","link":"https:\/\/www.laoyulaoyu.com\/index.php\/2024\/11\/03\/%e6%97%a5%e5%86%85%e4%ba%a4%e6%98%93%e9%9d%a9%e5%91%bd%ef%bc%9a%e9%9d%a2%e5%90%91%e7%8e%b0%e4%bb%a3%e4%ba%a4%e6%98%93%e8%80%85%e7%9a%84-python-%e9%a9%b1%e5%8a%a8%e5%88%86%e6%9e%90%ef%bc%88%e9%99%84\/","title":{"rendered":"\u65e5\u5185\u4ea4\u6613\u9769\u547d\uff1a\u9762\u5411\u73b0\u4ee3\u4ea4\u6613\u8005\u7684 Python \u9a71\u52a8\u5206\u6790\uff08\u9644\u4ee3\u7801\uff09"},"content":{"rendered":"\n<p>\u4f5c\u8005\uff1a<a href=\"https:\/\/www.laoyulaoyu.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u8001\u4f59\u635e\u9c7c<\/a><\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002<\/mark><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/10\/1728443994238.png\" alt=\"\" class=\"wp-image-2458\"\/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-verse\"><strong>\u5199\u5728\u524d\u9762\u7684\u8bdd\uff1a<\/strong>\u672c\u6587\u4ecb\u7ecd\u4e86<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u4e00\u6b3e\u57fa\u4e8e Python \u7684 Streamlit \u5e94\u7528\u7a0b\u5e8f<\/mark>\uff0c\u65e8\u5728\u4e3a Day  traders\uff08\u65e5\u5185\u4ea4\u6613\u8005\uff09\u63d0\u4f9b\u5b9e\u65f6\u6570\u636e\u5206\u6790\u3001\u652f\u6491\u4e0e\u963b\u529b\u6c34\u5e73\u8ba1\u7b97\u3001\u5f02\u5e38\u68c0\u6d4b\u4ee5\u53ca\u65b0\u95fb\u6574\u5408\u7b49\u529f\u80fd\uff0c<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u5e2e\u52a9\u4ea4\u6613\u8005\u66f4\u5feb\u5730\u505a\u51fa\u660e\u667a\u7684\u4ea4\u6613\u51b3\u7b56<\/mark>\u3002<\/pre>\n<\/blockquote>\n\n\n\n<p><strong>\u68a6\u60f3\u8fc7\u5446\u5728\u8212\u9002\u7684\u5bb6\u91cc\u5c31\u80fd\u5f81\u670d\u80a1\u5e02\u5417\uff1f<\/strong>Day  traders\uff0c\u7cfb\u597d\u5b89\u5168\u5e26\u6211\u4eec\u9a6c\u4e0a\u53d1\u8f66\uff01\u63a5\u4e0b\u6765\u5c06\u4ecb\u7ecd\u4e00\u6b3e Python \u5de5\u5177\uff0c\u5b83\u53ef\u80fd\u4f1a\u6210\u4e3a\u4f60\u7684\u65b0\u79d8\u5bc6\u6b66\u5668\u3002<\/p>\n\n\n\n<p><strong>\u60f3\u8c61\u4e00\u4e0b\uff1a<\/strong>Streamlit \u5e94\u7528\u7a0b\u5e8f\u4e0d\u4ec5\u4ec5\u662f\u53e6\u4e00\u4e2a\u80a1\u7968\u8ddf\u8e2a\u5668\uff0c\u800c\u662f\u4e00\u4e2a\u540d\u526f\u5176\u5b9e\u7684\u65e5\u95f4\u4ea4\u6613\u64cd\u4f5c\u6307\u6325\u4e2d\u5fc3\u3002\u8fd9\u4e0d\u662f\u4e3a\u4e86\u957f\u671f\u6301\u6709\uff0c\u800c\u662f\u4e3a\u4e86\u6293\u4f4f\u90a3\u4e9b\u51b3\u5b9a\u65e5\u5185\u4ea4\u6613\u6210\u529f\u4e0e\u5426\u7684\u8fc5\u96f7\u4e0d\u53ca\u63a9\u8033\u7684\u673a\u4f1a\u3002\u8ba9\u6211\u4eec\u7aa5\u63a2\u4e00\u4e0b\u5e55\u540e&#8230;&#8230;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e00\u3001\u5b9e\u65f6\u6570\u636e<\/strong><\/h3>\n\n\n\n<p>\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u76f4\u63a5\u63a5\u5165\u96c5\u864e\u8d22\u7ecf\u7684\u8109\u640f\uff0c\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u5c31\u4f1a\u83b7\u53d6\u5bf9\u65e5\u95f4\u4ea4\u6613\u8005\u81f3\u5173\u91cd\u8981\u7684\u6570\u636e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>def fetch_data(stock_symbol, interval, yf_period):\n    try:\n        data = yf.download(stock_symbol, period=yf_period, interval=interval)\n        if data.empty:\n            st.error(f\"No data returned for ticker {stock_symbol}. Please check the ticker symbol or interval.\")\n        return data\n    except Exception as e:\n        st.error(f\"Error fetching data from Yahoo Finance: {e}\")\n        return pd.DataFrame()<\/code><\/code><\/pre>\n\n\n\n<p>\u8be5\u529f\u80fd\u662f\u6211\u4eec\u5e94\u7528\u7a0b\u5e8f\u7684\u6838\u5fc3\u3002\u5b83\u4f7f\u7528 yfinance \u5e93\u4e0b\u8f7d\u5b9e\u65f6\u80a1\u7968\u6570\u636e\u3002\u60a8\u53ef\u4ee5\u9009\u62e9 1 \u5206\u949f\u30015 \u5206\u949f\u6216 15 \u5206\u949f\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u5728\u65e5\u95f4\u4ea4\u6613\u4e2d\u5206\u79d2\u5fc5\u4e89\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u652f\u6491\u4f4d\u548c\u963b\u529b\u4f4d<\/strong><\/h3>\n\n\n\n<p>\u65e5\u5185\u4ea4\u6613\u8005\u7684\u751f\u6b7b\u53d6\u51b3\u4e8e\u652f\u6491\u4f4d\u548c\u963b\u529b\u4f4d\u3002\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u53ef\u5b9e\u65f6\u8ba1\u7b97\u8fd9\u4e9b\u5173\u952e\u7684\u65e5\u5185\u6c34\u5e73\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>def calculate_support_resistance(data, window=20):\n    data&#91;'Support'] = data&#91;'Low'].rolling(window=window).min()\n    data&#91;'Resistance'] = data&#91;'High'].rolling(window=window).max()\n    return data&#91;'Support'].iloc&#91;-1], data&#91;'Resistance'].iloc&#91;-1]<\/code><\/code><\/pre>\n\n\n\n<p>\u8be5\u529f\u80fd\u4f7f\u7528\u6eda\u52a8\u7a97\u53e3\u6765\u786e\u5b9a\u652f\u6491\u4f4d\u548c\u963b\u529b\u4f4d\uff0c\u4f7f\u60a8\u5728\u8bc6\u522b\u6f5c\u5728\u7a81\u7834\u6216\u53cd\u8f6c\u65f6\u66f4\u5177\u4f18\u52bf\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e09\u3001\u5f02\u5e38\u68c0\u6d4b<\/strong><\/h3>\n\n\n\n<p>\u5bf9\u4e8e\u65e5\u5185\u4ea4\u6613\u8005\u6765\u8bf4\uff0c\u8fd9\u91cc\u624d\u662f\u771f\u6b63\u4ee4\u4eba\u5174\u594b\u7684\u5730\u65b9\u3002\u6211\u4eec\u4f7f\u7528\u6d1b\u4f26\u5179\u8ddd\u79bb\u7b97\u6cd5\uff08Lorentzian distance algorithm\uff09\u6765\u5bfb\u627e\u7206\u70b8\u6027\u7684\u76d8\u4e2d\u5f02\u5e38\u73b0\u8c61\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>def lorentzian_distance(x, y):\n    return np.log(1 + (x - y)**2)\n\n# Compute Lorentzian distances\nlorentzian_distances = &#91;lorentzian_distance(data_returns&#91;i], data_returns&#91;i + 1]) for i in range(len(data_returns) - 1)]<\/code><\/code><\/pre>\n\n\n\n<p>\u8be5\u4ee3\u7801\u53ef\u8ba1\u7b97\u8fde\u7eed\u56de\u62a5\u4e4b\u95f4\u7684\u6d1b\u4f26\u5179\u8ddd\u79bb\uff0c\u5e2e\u52a9\u8bc6\u522b\u4e0d\u5bfb\u5e38\u7684\u4ef7\u683c\u8d70\u52bf\u3002\u5b83\u5c31\u50cf\u4e00\u4e2a\u4e2a\u4eba\u8b66\u62a5\u7cfb\u7edf\uff0c\u80fd\u53ca\u65f6\u53d1\u73b0\u5e02\u573a\u5f02\u5e38\u60c5\u51b5\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u56db\u3001\u65b0\u95fb\u6574\u5408<\/strong><\/h3>\n\n\n\n<p>\u5728\u65e5\u5185\u4ea4\u6613\u7684\u4e16\u754c\u91cc\uff0c\u4e00\u5219\u65b0\u95fb\u6807\u9898\u5c31\u80fd\u8ba9\u80a1\u7968\u66b4\u6da8\u6216\u66b4\u8dcc\u3002\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u5b9e\u65f6\u65b0\u95fb\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>def fetch_stock_news(stock_symbol):\n    url = \"https:\/\/finance.yahoo.com\/rss\/headline?s=\" + stock_symbol\n    feed = feedparser.parse(url)\n    articles = &#91;]\n    for entry in feed.entries:\n        articles.append({\n            'title': entry.title,\n            'publishedAt': entry.published,\n            'url': entry.link\n        })\n    return articles<\/code><\/code><\/pre>\n\n\n\n<p>\u8be5\u529f\u80fd\u53ef\u83b7\u53d6\u4e0e\u60a8\u6240\u9009\u80a1\u7968\u76f8\u5173\u7684\u6700\u65b0\u65b0\u95fb\u62a5\u9053\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/10\/image-23.png\" alt=\"\" class=\"wp-image-2455\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>\u4e94\u3001\u53ef\u89c6\u5316\u56fe\u8868<\/strong><\/h3>\n\n\n\n<p>\u65e5\u5185\u4ea4\u6613\u65e2\u9700\u8981\u76f4\u89c9\uff0c\u4e5f\u9700\u8981\u6570\u636e\u3002\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u914d\u5907\u4e86\u4f7f\u7528 Plotly \u5236\u4f5c\u7684\u4e92\u52a8\u56fe\u8868\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>fig = go.Figure()\nfig.add_trace(go.Candlestick(\n    x=data.index,\n    open=data&#91;'Open'],\n    high=data&#91;'High'],\n    low=data&#91;'Low'],\n    close=data&#91;'Close'],<\/code><\/code><\/pre>\n\n\n\n<p>\u8be5\u4ee3\u7801\u53ef\u521b\u5efa\u6f02\u4eae\u7684\u8721\u70db\u56fe\uff0c\u5e76\u6e05\u6670\u6807\u6ce8\u652f\u6491\u4f4d\u548c\u963b\u529b\u4f4d\uff0c\u7a81\u51fa\u663e\u793a\u5f02\u5e38\u60c5\u51b5\u3002\u6240\u6709\u8fd9\u4e9b\u90fd\u4f1a\u5728\u4f60\u4ea4\u6613\u65f6\u5b9e\u65f6\u66f4\u65b0\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2024\/10\/image-24.png\" alt=\"\" class=\"wp-image-2456\"\/><\/figure>\n\n\n\n<p>\u867d\u7136\u8fd9\u4e2a\u5de5\u5177\u5f88\u5f3a\u5927\uff0c\u4f46\u8bf7\u8bb0\u4f4f\uff0c\u65e5\u5185\u4ea4\u6613\u7684\u98ce\u9669\u6781\u5927\u3002\u65e0\u8bba\u591a\u4e48\u5148\u8fdb\u7684\u5de5\u5177\u90fd\u65e0\u6cd5\u4fdd\u8bc1\u76c8\u5229\u3002\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u80fd\u4e3a\u60a8\u63d0\u4f9b\u6bd4\u4ee5\u5f80\u66f4\u5feb\u3001\u66f4\u5168\u9762\u7684\u4fe1\u606f\u548c\u89c1\u89e3\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u516d\u3001\u603b\u7ed3\u56de\u987e<\/strong><\/h3>\n\n\n\n<p>\u8bb0\u4f4f\uff0c\u5728\u5feb\u8282\u594f\u7684\u65e5\u5185\u4ea4\u6613\u4e2d\uff0c\u77e5\u8bc6\u4e0d\u4ec5\u662f\u529b\u91cf\uff0c\u66f4\u662f\u5229\u6da6\u3002\u56e0\u6b64\uff0c\u6f5c\u5fc3\u94bb\u7814\uff0c\u4fdd\u6301\u4fe1\u606f\u7075\u901a\uff0c\u613f\u4f60\u7684\u65e5\u5185\u56fe\u8868\u8d8b\u52bf\u59cb\u7ec8\u5bf9\u4f60\u6709\u5229\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5b9e\u65f6\u6570\u636e\u662f\u65e5\u5185\u4ea4\u6613\u7684\u547d\u8109<\/strong>\uff1a\u5e94\u7528\u7a0b\u5e8f\u901a\u8fc7\u4e0e Yahoo Finance \u7684\u76f4\u63a5\u96c6\u6210\uff0c\u63d0\u4f9b\u4e86\u591a\u4e2a\u65f6\u95f4\u95f4\u9694\u7684\u80a1\u7968\u6570\u636e\u66f4\u65b0\uff0c\u4ee5\u6ee1\u8db3\u65e5\u5185\u4ea4\u6613\u8005\u5bf9\u5feb\u901f\u6570\u636e\u7684\u9700\u6c42\u3002<\/li>\n\n\n\n<li><strong>\u652f\u6491\u4e0e\u963b\u529b\u6c34\u5e73\u7684\u5b9e\u65f6\u8ba1\u7b97\u5bf9\u4e8e\u65e5\u5185\u4ea4\u6613\u81f3\u5173\u91cd\u8981<\/strong>\uff1a\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528\u6eda\u52a8\u7a97\u53e3\u65b9\u6cd5\u6765\u786e\u5b9a\u8fd9\u4e9b\u5173\u952e\u6c34\u5e73\uff0c\u4e3a\u4ea4\u6613\u8005\u63d0\u4f9b\u4e86\u8bc6\u522b\u5e02\u573a\u52a8\u6001\u7684\u5de5\u5177\u3002<\/li>\n\n\n\n<li><strong>\u5f02\u5e38\u68c0\u6d4b\u53ef\u4ee5\u5e2e\u52a9\u4ea4\u6613\u8005\u6355\u6349\u5230\u5e02\u573a\u4e2d\u7684\u7206\u70b8\u6027\u5f02\u5e38<\/strong>\uff1a\u901a\u8fc7\u6d1b\u4f26\u5179\u8ddd\u79bb\u7b97\u6cd5\uff0c\u5e94\u7528\u7a0b\u5e8f\u80fd\u591f\u8bc6\u522b\u4e0d\u5bfb\u5e38\u7684\u4ef7\u683c\u8d70\u52bf\u3002<\/li>\n\n\n\n<li><strong>\u65b0\u95fb\u5bf9\u80a1\u4ef7\u7684\u5f71\u54cd\u662f\u4e0d\u53ef\u5ffd\u89c6\u7684<\/strong>\uff1a\u5e94\u7528\u7a0b\u5e8f\u6574\u5408\u4e86\u5b9e\u65f6\u65b0\u95fb\u529f\u80fd\uff0c\u786e\u4fdd\u4ea4\u6613\u8005\u80fd\u591f\u53ca\u65f6\u83b7\u53d6\u5f71\u54cd\u5176\u4ea4\u6613\u51b3\u7b56\u7684\u65b0\u95fb\u4fe1\u606f\u3002<\/li>\n\n\n\n<li><strong>\u76f4\u89c2\u7684\u6570\u636e\u53ef\u89c6\u5316\u5bf9\u4e8e\u4ea4\u6613\u51b3\u7b56\u81f3\u5173\u91cd\u8981<\/strong>\uff1a\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u4e92\u52a8\u5f0f\u7684\u8721\u70db\u56fe\uff0c\u5e2e\u52a9\u4ea4\u6613\u8005\u66f4\u597d\u5730\u7406\u89e3\u5e02\u573a\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>\u5c3d\u7ba1\u5de5\u5177\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u652f\u6301\uff0c\u4f46\u65e5\u5185\u4ea4\u6613\u7684\u98ce\u9669\u4ecd\u7136\u5f88\u9ad8<\/strong>\uff1a\u7f51\u9875\u5f3a\u8c03\uff0c\u5373\u4f7f\u4f7f\u7528\u4e86\u5148\u8fdb\u7684\u5206\u6790\u5de5\u5177\uff0c\u4e5f\u4e0d\u80fd\u4fdd\u8bc1\u4ea4\u6613\u76c8\u5229\uff0c\u4ea4\u6613\u8005\u5e94\u8be5\u8c28\u614e\u4ea4\u6613\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u672c\u6587\u4ee3\u7801\u5730\u5740\uff1a<\/strong><a href=\"https:\/\/github.com\/alexyu2013\/rss\/blob\/main\/day_trading_rss.py\">https:\/\/github.com\/alexyu2013\/rss\/blob\/main\/day_trading_rss.py<\/a><\/li>\n\n\n\n<li><strong>\u529f\u80fd\u4f53\u9a8c\u5730\u5740<\/strong>\uff1a<a href=\"https:\/\/cwkjqumxnopvjzohsv3tdc.streamlit.app\/\">https:\/\/cwkjqumxnopvjzohsv3tdc.streamlit.app\/<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u611f\u8c22\u60a8\u9605\u8bfb\u5230\u6700\u540e\u3002\u5982\u679c\u5bf9\u6587\u4e2d\u7684\u5185\u5bb9\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u8bf7\u7ed9\u6211\u7559\u8a00\uff0c\u5fc5\u590d\u3002<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><mark style=\"background-color:#ffffff\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u672c<\/mark><\/strong><strong><mark style=\"background-color:#ffffff\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u6587\u5185\u5bb9\u4ec5\u4ec5\u662f\u6280\u672f\u63a2\u8ba8\u548c\u5b66\u4e60\uff0c\u5e76\u4e0d\u6784\u6210\u4efb\u4f55\u6295\u8d44\u5efa\u8bae\u3002<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong><mark style=\"background-color:#ffffff\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u8f6c\u53d1\u8bf7\u6ce8\u660e\u539f\u4f5c\u8005\u548c\u51fa\u5904\u3002<\/mark><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1a\u8001\u4f59\u635e\u9c7c \u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.laoyulaoyu.com\/index.php\/2024\/11\/03\/%e6%97%a5%e5%86%85%e4%ba%a4%e6%98%93%e9%9d%a9%e5%91%bd%ef%bc%9a%e9%9d%a2%e5%90%91%e7%8e%b0%e4%bb%a3%e4%ba%a4%e6%98%93%e8%80%85%e7%9a%84-python-%e9%a9%b1%e5%8a%a8%e5%88%86%e6%9e%90%ef%bc%88%e9%99%84\/\">Continue reading<span class=\"screen-reader-text\">\u65e5\u5185\u4ea4\u6613\u9769\u547d\uff1a\u9762\u5411\u73b0\u4ee3\u4ea4\u6613\u8005\u7684 Python \u9a71\u52a8\u5206\u6790\uff08\u9644\u4ee3\u7801\uff09<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,6],"class_list":["post-1591","post","type-post","status-publish","format-standard","hentry","category-aiinvest","tag-ai","tag-6","entry"],"_links":{"self":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1591"}],"version-history":[{"count":1,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1591\/revisions"}],"predecessor-version":[{"id":1592,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1591\/revisions\/1592"}],"wp:attachment":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/categories?post=1591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/tags?post=1591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}