{"id":2605,"date":"2025-12-19T17:16:24","date_gmt":"2025-12-19T09:16:24","guid":{"rendered":"https:\/\/www.im-zu.cn\/?p=2605"},"modified":"2025-12-19T17:16:25","modified_gmt":"2025-12-19T09:16:25","slug":"python%e7%bc%96%e7%a8%8b%e5%ae%9e%e8%b7%b5%ef%bc%881%ef%bc%89%ef%bc%9agml%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6%e6%a0%bc%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.im-zu.cn\/?p=2605","title":{"rendered":"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f"},"content":{"rendered":"\n<p>\u5728\u91c7\u7528\u56fe\u8bba\u65b9\u5f0f\u8fdb\u884c\u7f16\u7a0b\u65f6\uff0c\u4e3a\u907f\u514d\u5728\u4ee3\u7801\u4e2d\u4ea7\u751f\u786c\u7f16\u7801\u60c5\u51b5\uff0c\u901a\u5e38\u4f1a\u5c06\u56fe\u4f5c\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u56fe\u8fdb\u884c\u7f16\u7a0b\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u4ec0\u4e48\u53eb\u505a\u5b9a\u4e49\u4e0e\u7ec4\u6210<\/h1>\n\n\n\n<p>gml\u662f\u4e00\u79cd\u7528\u4e8e\u5b58\u50a8\u548c\u4f20\u8f93\u5730\u7406\u4ee5\u53ca\u5730\u7406\u76f8\u5173\u4fe1\u606f\u7684\u8bed\u8a00\uff0c\u5176\u57fa\u672c\u7ed3\u6784\u4e3aXML\u7f16\u7801\u3002<\/p>\n\n\n\n<p>\u7ec4\u6210\u5305\u62ec\uff1a\u5730\u7406\u8981\u7d20\u548c\u5c42\u4e4b\u95f4\u7684\u7a7a\u95f4\u4e0e\u975e\u7a7a\u95f4\u7279\u5f81<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u8c03\u7528\u5305<\/h1>\n\n\n\n<p>Networkx\u5305\uff0c<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>import networkx as nx\ndata = \"name.gml\"\nGraph = nx.read_gml(data,label='id')<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">import<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">networkx<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">as<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">nx<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">data<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">name.gml<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">Graph<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">nx<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">read_gml<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #8FBCBB\">data<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #8FBCBB\">label<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">id<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5efa\u8bae\u8fd9\u4e00\u6b65\u9aa4\u5728main\u51fd\u6570\u4e2d\u5b9a\u4e49\u5373\u53ef<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Graph = nx.read_gml(\u2018network.gml\u2019)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">Graph<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">nx<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">read_gml<\/span><span style=\"color: #D8DEE9FF\">(\u2018<\/span><span style=\"color: #D8DEE9\">network<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">gml<\/span><span style=\"color: #D8DEE9FF\">\u2019)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u57fa\u672c\u683c\u5f0f<\/h1>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>graph [\n  node &#91;\n     id \"S\"\n     label \"S\"\n     parameter1 0.1\n     parameter2 0.2\n   &#93;\n  edge &#91;\n    source \"S\"\n    target \"T\"\n    parameter1 0.2\n  &#93;\n]\n    <\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">graph<\/span><span style=\"color: #D8DEE9FF\"> [<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">node<\/span><span style=\"color: #D8DEE9FF\"> &#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">     <\/span><span style=\"color: #D8DEE9\">id<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">S<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">     <\/span><span style=\"color: #D8DEE9\">label<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">S<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">     <\/span><span style=\"color: #D8DEE9\">parameter1<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0.1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">     <\/span><span style=\"color: #D8DEE9\">parameter2<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0.2<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">   &#93;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">edge<\/span><span style=\"color: #D8DEE9FF\"> &#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">source<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">S<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">target<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">T<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">parameter1<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0.2<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  &#93;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">]<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span><\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7f16\u5199\u56fe\u7684\u65f6\u5019\u7528\u5230\u7684\u4e00\u79cd\u6570\u636e\u683c\u5f0f<\/p>\n","protected":false},"author":2,"featured_media":2606,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[546,568],"tags":[571,111,572,569,570],"class_list":["post-2605","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-academic","category-568","tag-gml","tag-python","tag-xml","tag-569","tag-570","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f - Skylighter | \u5411\u5149\u8005<\/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.im-zu.cn\/?p=2605\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f - Skylighter | \u5411\u5149\u8005\" \/>\n<meta property=\"og:description\" content=\"\u7f16\u5199\u56fe\u7684\u65f6\u5019\u7528\u5230\u7684\u4e00\u79cd\u6570\u636e\u683c\u5f0f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.im-zu.cn\/?p=2605\" \/>\n<meta property=\"og:site_name\" content=\"Skylighter | \u5411\u5149\u8005\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-19T09:16:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-19T09:16:25+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/12\/python.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/#\\\/schema\\\/person\\\/64e69bc34a83d4ee17b6e12c086f98a4\"},\"headline\":\"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f\",\"datePublished\":\"2025-12-19T09:16:24+00:00\",\"dateModified\":\"2025-12-19T09:16:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605\"},\"wordCount\":6,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/#\\\/schema\\\/person\\\/64e69bc34a83d4ee17b6e12c086f98a4\"},\"image\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.im-zu.cn\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/python.webp\",\"keywords\":[\"gml\",\"Python\",\"xml\",\"\u56fe\u8bba\",\"\u8bba\u6587\u7f16\u7a0b\u6280\u672f\"],\"articleSection\":[\"\u5b66\u672f Academic\",\"\u6570\u5b57\u5316\u5b9e\u8df5\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605\",\"url\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605\",\"name\":\"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f - Skylighter | \u5411\u5149\u8005\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.im-zu.cn\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/python.webp\",\"datePublished\":\"2025-12-19T09:16:24+00:00\",\"dateModified\":\"2025-12-19T09:16:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605#primaryimage\",\"url\":\"https:\\\/\\\/www.im-zu.cn\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/python.webp\",\"contentUrl\":\"https:\\\/\\\/www.im-zu.cn\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/python.webp\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/?p=2605#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/www.im-zu.cn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/#website\",\"url\":\"https:\\\/\\\/www.im-zu.cn\\\/\",\"name\":\"Skylighter | \u5411\u5149\u8005\",\"description\":\"\u987a\u5149\u800c\u751f \u4ece\u5584\u800c\u884c\uff08\u539f\u9633\u5149\u7684\u8bfb\u535a\u65e5\u5fd7\uff09\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/#\\\/schema\\\/person\\\/64e69bc34a83d4ee17b6e12c086f98a4\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.im-zu.cn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/#\\\/schema\\\/person\\\/64e69bc34a83d4ee17b6e12c086f98a4\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/\u5c4f\u5e55\u622a\u56fe-2025-02-11-171316.png\",\"url\":\"https:\\\/\\\/www.im-zu.cn\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/\u5c4f\u5e55\u622a\u56fe-2025-02-11-171316.png\",\"contentUrl\":\"https:\\\/\\\/www.im-zu.cn\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/\u5c4f\u5e55\u622a\u56fe-2025-02-11-171316.png\",\"width\":1323,\"height\":500,\"caption\":\"Editor\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.im-zu.cn\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/\u5c4f\u5e55\u622a\u56fe-2025-02-11-171316.png\"},\"url\":\"https:\\\/\\\/www.im-zu.cn\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f - Skylighter | \u5411\u5149\u8005","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.im-zu.cn\/?p=2605","og_locale":"zh_CN","og_type":"article","og_title":"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f - Skylighter | \u5411\u5149\u8005","og_description":"\u7f16\u5199\u56fe\u7684\u65f6\u5019\u7528\u5230\u7684\u4e00\u79cd\u6570\u636e\u683c\u5f0f","og_url":"https:\/\/www.im-zu.cn\/?p=2605","og_site_name":"Skylighter | \u5411\u5149\u8005","article_published_time":"2025-12-19T09:16:24+00:00","article_modified_time":"2025-12-19T09:16:25+00:00","og_image":[{"width":1280,"height":720,"url":"http:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/12\/python.webp","type":"image\/jpeg"}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"Editor","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.im-zu.cn\/?p=2605#article","isPartOf":{"@id":"https:\/\/www.im-zu.cn\/?p=2605"},"author":{"name":"Editor","@id":"https:\/\/www.im-zu.cn\/#\/schema\/person\/64e69bc34a83d4ee17b6e12c086f98a4"},"headline":"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f","datePublished":"2025-12-19T09:16:24+00:00","dateModified":"2025-12-19T09:16:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.im-zu.cn\/?p=2605"},"wordCount":6,"commentCount":0,"publisher":{"@id":"https:\/\/www.im-zu.cn\/#\/schema\/person\/64e69bc34a83d4ee17b6e12c086f98a4"},"image":{"@id":"https:\/\/www.im-zu.cn\/?p=2605#primaryimage"},"thumbnailUrl":"https:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/12\/python.webp","keywords":["gml","Python","xml","\u56fe\u8bba","\u8bba\u6587\u7f16\u7a0b\u6280\u672f"],"articleSection":["\u5b66\u672f Academic","\u6570\u5b57\u5316\u5b9e\u8df5"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.im-zu.cn\/?p=2605#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.im-zu.cn\/?p=2605","url":"https:\/\/www.im-zu.cn\/?p=2605","name":"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f - Skylighter | \u5411\u5149\u8005","isPartOf":{"@id":"https:\/\/www.im-zu.cn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.im-zu.cn\/?p=2605#primaryimage"},"image":{"@id":"https:\/\/www.im-zu.cn\/?p=2605#primaryimage"},"thumbnailUrl":"https:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/12\/python.webp","datePublished":"2025-12-19T09:16:24+00:00","dateModified":"2025-12-19T09:16:25+00:00","breadcrumb":{"@id":"https:\/\/www.im-zu.cn\/?p=2605#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.im-zu.cn\/?p=2605"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.im-zu.cn\/?p=2605#primaryimage","url":"https:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/12\/python.webp","contentUrl":"https:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/12\/python.webp","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/www.im-zu.cn\/?p=2605#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.im-zu.cn\/"},{"@type":"ListItem","position":2,"name":"Python\u7f16\u7a0b\u5b9e\u8df5\uff081\uff09\uff1agml\u6570\u636e\u6587\u4ef6\u683c\u5f0f"}]},{"@type":"WebSite","@id":"https:\/\/www.im-zu.cn\/#website","url":"https:\/\/www.im-zu.cn\/","name":"Skylighter | \u5411\u5149\u8005","description":"\u987a\u5149\u800c\u751f \u4ece\u5584\u800c\u884c\uff08\u539f\u9633\u5149\u7684\u8bfb\u535a\u65e5\u5fd7\uff09","publisher":{"@id":"https:\/\/www.im-zu.cn\/#\/schema\/person\/64e69bc34a83d4ee17b6e12c086f98a4"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.im-zu.cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.im-zu.cn\/#\/schema\/person\/64e69bc34a83d4ee17b6e12c086f98a4","name":"Editor","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/02\/\u5c4f\u5e55\u622a\u56fe-2025-02-11-171316.png","url":"https:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/02\/\u5c4f\u5e55\u622a\u56fe-2025-02-11-171316.png","contentUrl":"https:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/02\/\u5c4f\u5e55\u622a\u56fe-2025-02-11-171316.png","width":1323,"height":500,"caption":"Editor"},"logo":{"@id":"https:\/\/www.im-zu.cn\/wp-content\/uploads\/2025\/02\/\u5c4f\u5e55\u622a\u56fe-2025-02-11-171316.png"},"url":"https:\/\/www.im-zu.cn\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=\/wp\/v2\/posts\/2605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2605"}],"version-history":[{"count":1,"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=\/wp\/v2\/posts\/2605\/revisions"}],"predecessor-version":[{"id":2607,"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=\/wp\/v2\/posts\/2605\/revisions\/2607"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=\/wp\/v2\/media\/2606"}],"wp:attachment":[{"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.im-zu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}