{"id":18283,"date":"2022-07-02T23:49:59","date_gmt":"2022-07-02T15:49:59","guid":{"rendered":"http:\/\/www.jdcui.com\/?p=18283"},"modified":"2026-02-20T21:56:45","modified_gmt":"2026-02-20T13:56:45","slug":"python%e7%bc%96%e7%a8%8b%e7%ac%94%e8%ae%b0-python%e6%b5%b7%e9%be%9f%e7%bb%98%e5%9b%be-%e5%a4%9a%e8%be%b9%e5%bd%a2-polygon","status":"publish","type":"post","link":"http:\/\/www.jdcui.com\/?p=18283","title":{"rendered":"[\u7f16\u7a0b\u7b14\u8bb0] Python\u6d77\u9f9f\u7ed8\u56fe \u2014\u2014 \u591a\u8fb9\u5f62 (Python turtle drawing &#8211; polygon)"},"content":{"rendered":"<p><span style=\"color: #ff00ff; background-color: #ccffcc;\"><strong>\u5b9e\u5e72\u3001\u5b9e\u8df5\u3001\u79ef\u7d2f\u3001\u601d\u8003\u3001\u521b\u65b0\u3002<\/strong><\/span><\/p>\n<hr \/>\n<p>\u6700\u8fd1\u5de5\u4f5c\u6bd4\u8f83\u5fd9\uff0c\u64b8\u64b8python\u4ee3\u7801\u653e\u677e\u4e00\u4e0b\uff0c\u7528python\u7684turtle\u5e93\u7ed8\u56fe\uff0c\u91cd\u65b0\u5b66\u4e60python\u3002<\/p>\n<div style=\"width: 584px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18283-1\" width=\"584\" height=\"598\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle1.mp4?_=1\" \/><a href=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle1.mp4\">http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle1.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<div style=\"width: 584px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18283-2\" width=\"584\" height=\"598\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle2.mp4?_=2\" \/><a href=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle2.mp4\">http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle2.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<div style=\"width: 584px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18283-3\" width=\"584\" height=\"598\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle3.mp4?_=3\" \/><a href=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle3.mp4\">http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle3.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<div style=\"width: 584px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18283-4\" width=\"584\" height=\"598\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle4.mp4?_=4\" \/><a href=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle4.mp4\">http:\/\/www.jdcui.com\/wp-content\/uploads\/2022\/07\/python-turtle4.mp4<\/a><\/video><\/div>\n<hr \/>\n<p style=\"text-align: center;\"><strong><div  class=\"thumbs-rating-container\" id=\"thumbs-rating-18283\" data-content-id=\"18283\"><button class=\"thumbs-rating-up thumbs-rating-voted\" onclick=\"thumbs_rating_vote(18283, 1);\">Vote Up +5<\/button> <button class=\"thumbs-rating-down\" onclick=\"thumbs_rating_vote(18283, 2);\">Vote Down -0<\/button><span class=\"thumbs-rating-already-voted\">You already voted!<\/span><\/div><\/strong><\/p>\n<ul style=\"list-style-type: square;\">\n<li><strong>\u76f8\u5173\u8bdd\u9898 (<span style=\"color: #000080;\"> Related Topics<\/span>)<\/strong><\/li>\n<\/ul>\n<p><strong><span style=\"color: #000000;\">[01].<\/span>\u00a0<a href=\"http:\/\/www.jdcui.com\/?p=6404\">Python \u51fa\u73b0\u201dinvalid literal for int() with base 10: \\xef\\xbb\\xbf0\u2033 \u9519\u8bef<\/a><\/strong><\/p>\n<p><strong><span style=\"color: #000000;\">[02].<\/span>\u00a0<a href=\"http:\/\/www.jdcui.com\/?p=6408\">[\u7f16\u7a0b\u7b14\u8bb0] Tuple in Python [Python\u4e2d\u7684\u5143\u7ec4]<\/a><\/strong><\/p>\n<p><strong><span style=\"color: #000000;\">[03].<\/span>\u00a0<a title=\"[Python][\u7f16\u7a0b][\u7b14\u8bb0] Python\u6d77\u9f9f\u7ed8\u56fe \u2014\u2014 \u591a\u8fb9\u5f62 Polygon\" href=\"http:\/\/www.jdcui.com\/?p=18283\">[Python][\u7f16\u7a0b][\u7b14\u8bb0] Python\u6d77\u9f9f\u7ed8\u56fe \u2014\u2014 \u591a\u8fb9\u5f62 Polygon<\/a><\/strong><\/p>\n<ul style=\"list-style-type: square;\">\n<li style=\"text-align: left;\"><strong>\u5fae\u4fe1\u516c\u4f17\u53f7\u00a0(<span style=\"color: #000080;\">\u00a0Wechat\u00a0Subscription<\/span>)<\/strong><\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2017\/01\/QRCODE.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3636\" src=\"http:\/\/www.jdcui.com\/wp-content\/uploads\/2017\/01\/QRCODE.jpg\" alt=\"WeChat_QRCode\" width=\"250\" height=\"255\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>\u6b22\u8fce\u5173\u6ce8\u00a0\u201c<span style=\"color: #ff00ff;\">\u7ed3\u6784\u4e4b\u65c5<\/span>\u201d\u00a0\u5fae\u4fe1\u516c\u4f17\u53f7<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9e\u5e72\u3001\u5b9e\u8df5\u3001\u79ef\u7d2f\u3001\u601d\u8003\u3001\u521b\u65b0\u3002 \u6700\u8fd1\u5de5\u4f5c\u6bd4\u8f83\u5fd9\uff0c\u64b8\u64b8python\u4ee3\u7801\u653e\u677e\u4e00\u4e0b\uff0c\u7528python\u7684turtle\u5e93\u7ed8\u56fe\uff0c\u91cd\u65b0\u5b66\u4e60python\u3002 &nbsp; &nbsp; &nbsp; \u76f8\u5173\u8bdd\u9898 ( Related Topics) [01].\u00a0Python \u51fa\u73b0\u201dinvalid literal for int() with base 10: \\xef\\xbb\\xbf0\u2033 \u9519\u8bef [02].\u00a0[\u7f16\u7a0b\u7b14\u8bb0] Tuple in Python [Python\u4e2d\u7684\u5143\u7ec4] [03].\u00a0[Python][\u7f16\u7a0b][\u7b14\u8bb0] Python\u6d77\u9f9f\u7ed8\u56fe \u2014\u2014 \u591a\u8fb9\u5f62 Polygon \u5fae\u4fe1\u516c\u4f17\u53f7\u00a0(\u00a0Wechat\u00a0Subscription) &#8230;<\/p>\n","protected":false},"author":1,"featured_media":18291,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,997],"tags":[998,3405,999],"class_list":["post-18283","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-python","tag-python","tag-turtle","tag-999"],"aioseo_notices":[],"views":1601,"_links":{"self":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/posts\/18283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18283"}],"version-history":[{"count":0,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/posts\/18283\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=\/wp\/v2\/media\/18291"}],"wp:attachment":[{"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18283"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jdcui.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}