{"id":986449,"date":"2024-12-27T07:45:01","date_gmt":"2024-12-26T23:45:01","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/986449.html"},"modified":"2024-12-27T07:45:04","modified_gmt":"2024-12-26T23:45:04","slug":"%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85mysql-python-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/986449.html","title":{"rendered":"\u5982\u4f55\u5b89\u88c5mysql-python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25063031\/983b68df-10b4-452c-8f72-54a367352ee9.webp\" alt=\"\u5982\u4f55\u5b89\u88c5mysql-python\" \/><\/p>\n<p><p> <strong>\u5b89\u88c5MySQL-Python\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5Python\u3001\u5b89\u88c5MySQL\u6570\u636e\u5e93\u3001\u5b89\u88c5MySQL\u5f00\u53d1\u5e93\u3001\u4f7f\u7528pip\u5b89\u88c5MySQL-Python\u6a21\u5757\u3002\u9996\u5148\uff0c\u786e\u4fdd\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86Python\u548cMySQL\u6570\u636e\u5e93\uff0c\u7136\u540e\u5b89\u88c5MySQL\u7684\u5f00\u53d1\u5e93\u4ee5\u652f\u6301C\u8bed\u8a00\u7f16\u5199\u7684MySQL-Python\u6a21\u5757\uff0c\u6700\u540e\u4f7f\u7528pip\u547d\u4ee4\u5b89\u88c5MySQL-Python\u3002<\/strong>\u5176\u4e2d\uff0c\u5b89\u88c5MySQL\u5f00\u53d1\u5e93\u662f\u4e00\u4e2a\u5173\u952e\u6b65\u9aa4\uff0c\u5b83\u4e3aMySQL-Python\u6a21\u5757\u63d0\u4f9b\u4e86\u7f16\u8bd1\u6240\u9700\u7684\u5934\u6587\u4ef6\u548c\u5e93\u6587\u4ef6\u3002\u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u8fd9\u4e9b\u5f00\u53d1\u5e93\uff0c\u800c\u5728Windows\u4e0a\u5219\u9700\u8981\u786e\u4fddMySQL Connector\/C\u5df2\u7ecf\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5MySQL-Python\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u7cfb\u7edf\u4e0a\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5Python\u7248\u672c<\/strong>\uff1a\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\uff0c\u4ee5\u786e\u8ba4\u662f\u5426\u5df2\u5b89\u88c5Python\u4ee5\u53ca\u5176\u7248\u672c\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u6216\u8005\u7248\u672c\u8fc7\u4f4e\uff0c\u9700\u8981\u8fdb\u884c\u5b89\u88c5\u6216\u5347\u7ea7\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0b\u8f7d\u548c\u5b89\u88c5Python<\/strong>\uff1a\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/downloads\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E9%80%82%E5%90%88%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84Python%E7%89%88%E6%9C%AC%E3%80%82%E4%B8%8B%E8%BD%BD%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E6%8C%89%E7%85%A7%E5%AE%89%E8%A3%85%E5%90%91%E5%AF%BC%E8%BF%9B%E8%A1%8C%E5%AE%89%E8%A3%85%E3%80%82%E5%9C%A8Windows%E4%B8%8A%EF%BC%8C%E7%A1%AE%E4%BF%9D%E5%9C%A8%E5%AE%89%E8%A3%85%E9%80%89%E9%A1%B9%E4%B8%AD%E5%8B%BE%E9%80%89%E2%80%9CAdd\">https:\/\/www.python.org\/downloads\/\uff09\u4e0b\u8f7d\u9002\u5408\u64cd\u4f5c\u7cfb\u7edf\u7684Python\u7248\u672c\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u8fdb\u884c\u5b89\u88c5\u3002\u5728Windows\u4e0a\uff0c\u786e\u4fdd\u5728\u5b89\u88c5\u9009\u9879\u4e2d\u52fe\u9009\u201cAdd<\/a> Python to PATH\u201d\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8c03\u7528Python\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong>\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u518d\u6b21\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u6765\u786e\u8ba4Python\u5df2\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u5b89\u88c5MySQL\u6570\u636e\u5e93<\/p>\n<\/p>\n<p><p>MySQL\u6570\u636e\u5e93\u4e5f\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u90e8\u5206\uff0c\u4ee5\u4e0b\u662f\u5b89\u88c5\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dMySQL<\/strong>\uff1a\u8bbf\u95eeMySQL\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/dev.mysql.com\/downloads\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E9%80%82%E7%94%A8%E4%BA%8E%E6%82%A8%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84MySQL\">https:\/\/dev.mysql.com\/downloads\/\uff09\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684MySQL<\/a> Community Server\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5MySQL<\/strong>\uff1a\u8fd0\u884c\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6309\u7167\u63d0\u793a\u5b89\u88c5MySQL\u6570\u636e\u5e93\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u6216\u8005\u6839\u636e\u9700\u8981\u8fdb\u884c\u81ea\u5b9a\u4e49\u8bbe\u7f6e\uff0c\u4f8b\u5982\u8bbe\u7f6eroot\u5bc6\u7801\u3001\u9009\u62e9\u5b89\u88c5\u8def\u5f84\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u542f\u52a8\u548c\u914d\u7f6eMySQL<\/strong>\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u542f\u52a8MySQL\u670d\u52a1\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u6216MySQL Workbench\u7b49\u5de5\u5177\u8fde\u63a5\u5230MySQL\u670d\u52a1\u5668\uff0c\u6267\u884c\u4e00\u4e9b\u57fa\u672c\u547d\u4ee4\u4ee5\u786e\u4fdd\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5b89\u88c5MySQL\u5f00\u53d1\u5e93<\/p>\n<\/p>\n<p><p>\u5b89\u88c5MySQL\u5f00\u53d1\u5e93\u662fMySQL-Python\u6a21\u5757\u7f16\u8bd1\u548c\u5b89\u88c5\u6240\u9700\u7684\u91cd\u8981\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Linux\u7cfb\u7edf<\/strong>\uff1a\u5728\u57fa\u4e8eDebian\u7684\u7cfb\u7edf\u4e0a\uff08\u5982Ubuntu\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u5f00\u53d1\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get install python-dev libmysqlclient-dev<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u57fa\u4e8eRed Hat\u7684\u7cfb\u7edf\u4e0a\uff08\u5982CentOS\uff09\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo yum install python-devel mysql-devel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>Windows\u7cfb\u7edf<\/strong>\uff1a\u9700\u8981\u4eceMySQL\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5MySQL Connector\/C\uff08<a href=\"https:\/\/dev.mysql.com\/downloads\/connector\/c\/%EF%BC%89%E3%80%82%E5%AE%89%E8%A3%85%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E7%A1%AE%E4%BF%9D%E5%AE%89%E8%A3%85%E8%B7%AF%E5%BE%84%E4%B8%AD%E7%9A%84%E5%A4%B4%E6%96%87%E4%BB%B6%E5%92%8C%E5%BA%93%E6%96%87%E4%BB%B6%E8%A2%AB%E6%AD%A3%E7%A1%AE%E9%85%8D%E7%BD%AE%E3%80%82\">https:\/\/dev.mysql.com\/downloads\/connector\/c\/\uff09\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u786e\u4fdd\u5b89\u88c5\u8def\u5f84\u4e2d\u7684\u5934\u6587\u4ef6\u548c\u5e93\u6587\u4ef6\u88ab\u6b63\u786e\u914d\u7f6e\u3002<\/a><\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f7f\u7528pip\u5b89\u88c5MySQL-Python<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u4e0a\u8ff0\u4f9d\u8d56\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u6765\u5b89\u88c5MySQL-Python\u6a21\u5757\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u786e\u4fddpip\u5b89\u88c5<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>pip --version<\/code>\u6216<code>pip3 --version<\/code>\u4ee5\u786e\u8ba4pip\u662f\u5426\u5df2\u5b89\u88c5\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get install python-pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo yum install python-pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728Windows\u4e0a\uff0cPython\u7684\u5b89\u88c5\u7a0b\u5e8f\u901a\u5e38\u4f1a\u81ea\u52a8\u5b89\u88c5pip\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5MySQL-Python<\/strong>\uff1a\u4f7f\u7528pip\u547d\u4ee4\u5b89\u88c5MySQL-Python\u6a21\u5757\u3002\u5bf9\u4e8ePython 2.x\u7248\u672c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install MySQL-python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bf9\u4e8ePython 3.x\u7248\u672c\uff0c\u5efa\u8bae\u4f7f\u7528mysqlclient\u4f5c\u4e3a\u66ff\u4ee3\uff0c\u56e0\u4e3aMySQL-Python\u4e0d\u652f\u6301Python 3.x\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install mysqlclient<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong>\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728Python\u89e3\u91ca\u5668\u4e2d\u5bfc\u5165\u6a21\u5757\u6765\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import MySQLdb<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u51fa\u73b0\u9519\u8bef\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u89e3\u51b3\u5e38\u89c1\u95ee\u9898<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5MySQL-Python\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u8bd1\u9519\u8bef<\/strong>\uff1a\u5982\u679c\u5728Linux\u7cfb\u7edf\u4e0a\u9047\u5230\u7f16\u8bd1\u9519\u8bef\uff0c\u901a\u5e38\u662f\u7531\u4e8e\u7f3a\u5c11\u5fc5\u8981\u7684\u5f00\u53d1\u5e93\u3002\u786e\u4fdd\u5df2\u5b89\u88c5<code>python-dev<\/code>\u548c<code>libmysqlclient-dev<\/code>\u7b49\u5e93\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Windows\u73af\u5883\u95ee\u9898<\/strong>\uff1a\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u786e\u4fddMySQL Connector\/C\u5b89\u88c5\u8def\u5f84\u4e2d\u7684\u5934\u6587\u4ef6\u548c\u5e93\u6587\u4ef6\u88ab\u6b63\u786e\u914d\u7f6e\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u4ee5\u6307\u5411\u6b63\u786e\u7684\u76ee\u5f55\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u517c\u5bb9\u6027<\/strong>\uff1a\u5982\u679c\u4f7f\u7528\u7684\u662fPython 3.x\u7248\u672c\uff0c\u5efa\u8bae\u4f7f\u7528mysqlclient\u6a21\u5757\uff0c\u56e0\u4e3aMySQL-Python\u5bf9Python 3.x\u7248\u672c\u7684\u652f\u6301\u6709\u9650\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u9075\u5faa\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u987a\u5229\u5b89\u88c5MySQL-Python\u6a21\u5757\uff0c\u5e76\u5728Python\u9879\u76ee\u4e2d\u4f7f\u7528MySQL\u6570\u636e\u5e93\u3002\u786e\u4fdd\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u4ed4\u7ec6\u68c0\u67e5\u6bcf\u4e00\u6b65\uff0c\u4ee5\u907f\u514d\u5e38\u89c1\u9519\u8bef\u548c\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u68c0\u67e5\u6211\u7684\u7cfb\u7edf\u662f\u5426\u5df2\u5b89\u88c5Python\u548cMySQL\uff1f<\/strong><br \/>\u5728\u5b89\u88c5mysql-python\u4e4b\u524d\uff0c\u786e\u4fdd\u60a8\u7684\u7cfb\u7edf\u4e0a\u5df2\u5b89\u88c5Python\u548cMySQL\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u6765\u68c0\u67e5Python\u7248\u672c\u3002\u540c\u65f6\uff0c\u4f7f\u7528<code>mysql --version<\/code>\u6765\u786e\u8ba4MySQL\u7684\u5b89\u88c5\u60c5\u51b5\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u548cMySQL\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p><strong>mysql-python\u4e0e\u5176\u4ed6\u6570\u636e\u5e93\u8fde\u63a5\u5e93\u76f8\u6bd4\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f<\/strong><br \/>mysql-python\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u5e93\uff0c\u4e13\u95e8\u7528\u4e8e\u4e0eMySQL\u6570\u636e\u5e93\u8fdb\u884c\u4ea4\u4e92\u3002\u5b83\u63d0\u4f9b\u4e86\u5feb\u901f\u548c\u9ad8\u6548\u7684\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u9002\u7528\u4e8e\u9700\u8981\u9891\u7e41\u4e0eMySQL\u6570\u636e\u5e93\u8fdb\u884c\u6570\u636e\u64cd\u4f5c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u4e0e\u5176\u4ed6\u5e93\u5982SQLAlchemy\u76f8\u6bd4\uff0cmysql-python\u66f4\u52a0\u76f4\u63a5\uff0c\u9002\u5408\u5bf9\u6027\u80fd\u6709\u8f83\u9ad8\u8981\u6c42\u7684\u9879\u76ee\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u5b89\u88c5mysql-python\u65f6\u89e3\u51b3\u5e38\u89c1\u7684\u9519\u8bef\uff1f<\/strong><br \/>\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u9519\u8bef\uff0c\u5982\u7f3a\u5c11\u4f9d\u8d56\u9879\u6216\u6743\u9650\u95ee\u9898\u3002\u786e\u4fdd\u60a8\u5df2\u5b89\u88c5\u6240\u6709\u5fc5\u9700\u7684\u5f00\u53d1\u5305\uff08\u5982libmysqlclient-dev\uff09\u5e76\u5177\u6709\u8db3\u591f\u7684\u6743\u9650\u3002\u4f7f\u7528<code>pip install mysql-python<\/code>\u547d\u4ee4\u65f6\uff0c\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528<code>pip install --upgrade pip<\/code>\u66f4\u65b0pip\u7248\u672c\uff0c\u6216\u8005\u5728Linux\u7cfb\u7edf\u4e0a\u4f7f\u7528<code>sudo<\/code>\u547d\u4ee4\u6765\u83b7\u53d6\u66f4\u9ad8\u7684\u6743\u9650\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5b89\u88c5mysql-python\u540e\uff0c\u5982\u4f55\u9a8c\u8bc1\u5176\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u5b8c\u6210\u5b89\u88c5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728Python\u73af\u5883\u4e2d\u5bfc\u5165mysql-python\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002\u6253\u5f00Python\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff0c\u8f93\u5165<code>import MySQLdb<\/code>\uff0c\u5982\u679c\u6ca1\u6709\u9519\u8bef\u6d88\u606f\uff0c\u5219\u8868\u793a\u5b89\u88c5\u6210\u529f\u3002\u6b64\u5916\uff0c\u60a8\u53ef\u4ee5\u7f16\u5199\u7b80\u5355\u7684\u4ee3\u7801\u6765\u6d4b\u8bd5\u4e0eMySQL\u6570\u636e\u5e93\u7684\u8fde\u63a5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5b89\u88c5MySQL-Python\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5Python\u3001\u5b89\u88c5MySQL\u6570\u636e\u5e93\u3001\u5b89\u88c5MySQL\u5f00\u53d1\u5e93\u3001\u4f7f\u7528pi [&hellip;]","protected":false},"author":3,"featured_media":986461,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/986449"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=986449"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/986449\/revisions"}],"predecessor-version":[{"id":986466,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/986449\/revisions\/986466"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/986461"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=986449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=986449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=986449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}