{"id":5495,"date":"2021-09-03T17:25:23","date_gmt":"2021-09-03T09:25:23","guid":{"rendered":"https:\/\/damogame.cn:15443\/wordpress\/?p=5495"},"modified":"2021-09-03T17:25:23","modified_gmt":"2021-09-03T09:25:23","slug":"python%e5%ae%9e%e7%8e%b0%e9%98%bf%e9%87%8c%e4%ba%91%e5%9f%9f%e5%90%8dddns%e6%94%af%e6%8c%81ipv4%e5%92%8cipv6","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/5495","title":{"rendered":"Python\u5b9e\u73b0\u963f\u91cc\u4e91\u57df\u540dDDNS\u652f\u6301ipv4\u548cipv6"},"content":{"rendered":"<p data-spm-anchor-id=\"a2c6h.12873639.0.i0.76b53277XORwBF\"><a href=\"https:\/\/developer.aliyun.com\/article\/755182?spm=a2c6h.13813017.content3.1.102c4d57DsRUjc\">\u539f\u6587\u5730\u5740<\/a><\/p>\n<p data-spm-anchor-id=\"a2c6h.12873639.0.i0.76b53277XORwBF\">\n<p class=\"article-title\" data-spm-anchor-id=\"a2c6h.12873639.0.i0.76b53277XORwBF\">\n<p class=\"article-info\"><a class=\"article-info-author question-avatar-wrapper wechat-disable\" href=\"https:\/\/developer.aliyun.com\/profile\/c2rhw5zccvjte\">zeruns<\/a>\u00a0<img decoding=\"async\" class=\"article-info-medal\" style=\"box-sizing: inherit; border: 0px; width: 16px; vertical-align: middle;\" src=\"https:\/\/img.alicdn.com\/tfs\/TB10fDzdND1gK0jSZFsXXbldVXa-36-32.png\" alt=\"\" data-url=\"https:\/\/ucc.alicdn.com\/pic\/ucc-admin\/eee40c5017904f91b1ac40db688c0111.png\" data-time=\"2020-03-16 13:32:23\" data-btn-text=\"\u83b7\u53d6\u6211\u7684\u52cb\u7ae0 &gt;\" data-btn-url=\"\/\/developer.aliyun.com\/certification\" \/>\u00a0<span class=\"article-info-time\">2020-04-14<\/span>\u00a0<span class=\"article-info-read\">9186\u6d4f\u89c8\u91cf<\/span><\/p>\n<div class=\"article-desc\"><b>\u7b80\u4ecb\uff1a<\/b>\u00a0Python\u5b9e\u73b0\u963f\u91cc\u4e91\u57df\u540dDDNS\u652f\u6301ipv4\u548cipv6<\/div>\n<div class=\"article-inner markdown-body\">\n<h2>\u524d\u8a00<\/h2>\n<p>\u9996\u5148\u5f97\u6709\u4e00\u4e2a\u963f\u91cc\u4e91\u7684\u57df\u540d\uff1a<a href=\"https:\/\/www.aliyun.com\/minisite\/goods?userCode=jdjc69nf\">https:\/\/www.aliyun.com\/minisite\/goods?userCode=jdjc69nf<\/a><\/p>\n<p>\u7136\u540e\u4f60\u7684IP\u5fc5\u987b\u662f\u516c\u7f51IP\uff0c\u4e0d\u7136\u89e3\u6790\u4e86\u4e5f\u6ca1\u7528\u3002<\/p>\n<p>\u672c\u6587\u7ae0\u8bb2\u600e\u6837\u901a\u8fc7\u963f\u91cc\u4e91\u7684SDK\u6765\u6dfb\u52a0\u4fee\u6539\u57df\u540d\u89e3\u6790\uff0c\u68c0\u67e5\u672c\u673aIP\u4e0e\u89e3\u6790\u7684IP\u662f\u5426\u4e00\u81f4\uff0c\u4e0d\u4e00\u81f4\u81ea\u52a8\u4fee\u6539\u89e3\u6790\uff0c\u8fbe\u5230\u52a8\u6001\u89e3\u6790\u7684\u76ee\u7684\uff0c\u4e3b\u8981\u7528\u4e8e\u5bb6\u5ead\u5bbd\u5e26\u8fd9\u4e9b\u52a8\u6001IP\u7684\u5730\u65b9\u3002<\/p>\n<h2>\u5b89\u88c5\u963f\u91cc\u4e91SDK\u548c\u5176\u4ed6\u7b2c\u4e09\u65b9\u5e93<\/h2>\n<pre><code class=\"hljs sql\">pip <span class=\"hljs-keyword\">install<\/span> aliyun-python-sdk-core-v3\r\npip <span class=\"hljs-keyword\">install<\/span> aliyun-python-sdk-<span class=\"hljs-keyword\">domain<\/span>\r\npip <span class=\"hljs-keyword\">install<\/span> aliyun-python-sdk-alidns\r\npip <span class=\"hljs-keyword\">install<\/span> requests<\/code><\/pre>\n<p>\u76f4\u63a5\u5728CMD\u4e2d\u8f93\u5165\u4e0a\u9762\u7684\u547d\u4ee4\u5373\u53ef\uff0c\u5982\u679c\u4e0b\u8f7d\u901f\u5ea6\u592a\u6162\u53ef\u4ee5\u767e\u5ea6\u641c<code>windows\u4e0bPython\u6362\u6e90<\/code>\u3002<br \/>\n<img decoding=\"async\" title=\"\" src=\"https:\/\/tc.zeruns.tech\/images\/2020\/04\/02\/2020-04-02_15-29-39.png\" alt=\"\" \/><\/p>\n<p>\u4f7f\u7528Pycharm\u4e4b\u7c7bIDE\u7684\u81ea\u884c\u767e\u5ea6<code>pycharm\u600e\u6837\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93<\/code><\/p>\n<h2>\u8be6\u7ec6\u6b65\u9aa4<\/h2>\n<h3>\u83b7\u53d6accessKeyId\u548caccessSecret<\/h3>\n<p>\u53ef\u4ee5\u5728\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u4e2a\u4eba\u4e2d\u5fc3\u76f4\u63a5\u83b7\u53d6\uff0c\u4f46\u662f\u4e00\u822c\u5efa\u8bae\u4f7f\u7528RAM\u89d2\u8272\u6765\u8fdb\u884c\u6743\u9650\u63a7\u5236\uff0c\u8fd9\u6837\u8fd9\u4e2aaccessKey\u548caccessSecret\u5c31\u53ea\u80fd\u64cd\u4f5c\u57df\u540d\uff0c\u4e0d\u80fd\u64cd\u4f5c\u5176\u4ed6\u7684\u8d44\u6e90\uff0c\u76f8\u5bf9\u4f1a\u6bd4\u8f83\u5b89\u5168\u3002\u5173\u4e8eRAM\u5feb\u901f\u5165\u95e8\uff1a<a href=\"https:\/\/help.aliyun.com\/document_detail\/28637.html?source=5176.11533457&amp;userCode=jdjc69nf\">https:\/\/help.aliyun.com\/document_detail\/28637.html?source=5176.11533457&amp;userCode=jdjc69nf<\/a><\/p>\n<h3>\u6e90\u7801\u4e0b\u8f7d<\/h3>\n<p>gitee\uff1a<a href=\"https:\/\/gitee.com\/zeruns\/aliddns_Python\">https:\/\/gitee.com\/zeruns\/aliddns_Python<\/a><br \/>\ngithub\uff1a<a href=\"https:\/\/github.com\/zeruns\/-Python-aliddns_ipv4-ipv6\">https:\/\/github.com\/zeruns\/-Python-aliddns_ipv4-ipv6<\/a><br \/>\n\u6c42Star<br \/>\n\u5c06<code>aliddns.py<\/code>\u6587\u4ef6\u4e0b\u8f7d\u4e0b\u6765\u3002<\/p>\n<p>\u7136\u540e\u7528notepad++\u6216\u5176\u4ed6\u7f16\u8f91\u5668\u6253\u5f00\uff0c\u6309\u7167\u6ce8\u91ca\u63d0\u793a\u4fee\u6539\u5e76\u4fdd\u5b58\u3002<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/tc.zeruns.tech\/images\/2020\/04\/03\/2020-04-03_03-11-44.png\" alt=\"\" \/><\/p>\n<p>\u7136\u540e\u8fd0\u884c\u4e00\u4e0b\u770b\u770b\u6709\u6ca1\u6709\u95ee\u9898\uff1a<\/p>\n<p>\u6253\u5f00cmd\u8f93\u5165<code>python \u811a\u672c\u76ee\u5f55<\/code><\/p>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/tc.zeruns.tech\/images\/2020\/04\/03\/2020-04-03_11-41-53.png\" alt=\"\" \/><\/p>\n<h3>\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1<\/h3>\n<p>\u53f3\u952e\u70b9\u51fb\u7535\u8111\u5de6\u4e0b\u89d2\uff0c\u518d\u70b9\u51fb\u8ba1\u7b97\u673a\u7ba1\u7406<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/tc.zeruns.tech\/images\/2020\/04\/03\/2020-04-03_11-44-31.png\" alt=\"\" \/><\/p>\n<p>\u70b9\u51fb\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\uff0c\u518d\u70b9\u51fb\u521b\u5efa\u4efb\u52a1\uff0c\u8f93\u5165\u8981\u8bbe\u7f6e\u7684\u4efb\u52a1\u540d\u79f0\u3002<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/tc.zeruns.tech\/images\/2020\/04\/03\/2020-04-03_11-49-46.png\" alt=\"\" \/><\/p>\n<p>\u65b0\u5efa\u89e6\u53d1\u5668\uff0c\u6267\u884c\u95f4\u9694\u53ef\u4ee5\u81ea\u5df1\u8bbe\u7f6e\uff0c\u6301\u7eed\u65f6\u95f4\u6539\u6210\u65e0\u9650\u671f\u3002<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/tc.zeruns.tech\/images\/2020\/04\/03\/2020-04-03_11-51-51.png\" alt=\"\" \/><\/p>\n<p>\u65b0\u5efa\u64cd\u4f5c\uff0c\u8fd9\u4e00\u6b65\u5f88\u91cd\u8981\uff0c\u914d\u7f6e\u9519\u8bef\u5c31\u4f1a\u5bfc\u81f4\u811a\u672c\u6587\u4ef6\u6267\u884c\u4e0d\u6210\u529f\uff01\uff01\uff01<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/tc.zeruns.tech\/images\/2020\/04\/03\/2019082114431546.png\" alt=\"\" \/><\/p>\n<p>\u6700\u540e\u786e\u8ba4\u5c31\u884c\u3002<\/p>\n<p>Linux\u8bbe\u7f6e\u65b9\u6cd5\u81ea\u884c\u767e\u5ea6<code>Linux\u5b9a\u65f6\u4efb\u52a1<\/code><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u5730\u5740 zeruns\u00a0\u00a02020-04<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[125],"class_list":["post-5495","post","type-post","status-publish","format-standard","hentry","tag-09-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/5495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=5495"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/5495\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=5495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=5495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=5495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}