{"id":377,"date":"2025-10-10T15:57:20","date_gmt":"2025-10-10T07:57:20","guid":{"rendered":"http:\/\/www.pyteam.cn\/?p=377"},"modified":"2025-10-14T14:27:04","modified_gmt":"2025-10-14T06:27:04","slug":"%e5%88%9b%e4%bd%9c%e6%8c%87%e5%af%bc%e6%a1%86%e6%9e%b6-15-9","status":"publish","type":"post","link":"http:\/\/www.pyteam.cn\/index.php\/2025\/10\/10\/%e5%88%9b%e4%bd%9c%e6%8c%87%e5%af%bc%e6%a1%86%e6%9e%b6-15-9\/","title":{"rendered":"\u521b\u4f5c\u6307\u5bfc\u6846\u67b6 15.9"},"content":{"rendered":"\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:clamp(18px, 1.125rem, 27px);font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#90A4AE;--cbp-line-number-width:calc(2 * 0.6 * 1.125rem);line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#ededed;color:#8198a3\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#90A4AE;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>def student_creative_template():\n    \"\"\"\u5b66\u751f\u521b\u4f5c\u6a21\u677f\"\"\"\n    # 1. \u8bbe\u7f6e\u753b\u5e03\u548c\u989c\u8272\u4e3b\u9898\n    screen.bgcolor(\"navy\")\n    t.pensize(2)\n    \n    # 2. \u8bbe\u8ba1\u4e3b\u8981\u5bf9\u79f0\u7ed3\u6784\n    def main_structure():\n        # \u5728\u8fd9\u91cc\u5b9e\u73b0\u4e3b\u8981\u5bf9\u79f0\u56fe\u6848\n        pass\n    \n    # 3. \u6dfb\u52a0\u5206\u5f62\u7ec6\u8282\n    def fractal_details():\n        # \u5728\u8fd9\u91cc\u6dfb\u52a0\u5206\u5f62\u5143\u7d20\n        pass\n    \n    # 4. \u7279\u6b8a\u6548\u679c\uff08\u53ef\u9009\uff09\n    def special_effects():\n        # \u989c\u8272\u6e10\u53d8\u3001\u52a8\u753b\u6548\u679c\u7b49\n        pass\n    \n    main_structure()\n    fractal_details()\n    special_effects()\n\n# \u5f00\u59cb\u521b\u4f5c\uff01<\/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 material-theme-lighter\" style=\"background-color: #FAFAFA\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9C3EDA\">def<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #6182B8\">student_creative_template<\/span><span style=\"color: #39ADB5\">():<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #39ADB5; font-style: italic\">&quot;&quot;&quot;<\/span><span style=\"color: #90A4AE; font-style: italic\">\u5b66\u751f\u521b\u4f5c\u6a21\u677f<\/span><span style=\"color: #39ADB5; font-style: italic\">&quot;&quot;&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #90A4AE; font-style: italic\"># 1. \u8bbe\u7f6e\u753b\u5e03\u548c\u989c\u8272\u4e3b\u9898<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    screen<\/span><span style=\"color: #39ADB5\">.<\/span><span style=\"color: #6182B8\">bgcolor<\/span><span style=\"color: #39ADB5\">(<\/span><span style=\"color: #39ADB5\">&quot;<\/span><span style=\"color: #91B859\">navy<\/span><span style=\"color: #39ADB5\">&quot;<\/span><span style=\"color: #39ADB5\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    t<\/span><span style=\"color: #39ADB5\">.<\/span><span style=\"color: #6182B8\">pensize<\/span><span style=\"color: #39ADB5\">(<\/span><span style=\"color: #F76D47\">2<\/span><span style=\"color: #39ADB5\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #90A4AE; font-style: italic\"># 2. \u8bbe\u8ba1\u4e3b\u8981\u5bf9\u79f0\u7ed3\u6784<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #9C3EDA\">def<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #6182B8\">main_structure<\/span><span style=\"color: #39ADB5\">():<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">        <\/span><span style=\"color: #90A4AE; font-style: italic\"># \u5728\u8fd9\u91cc\u5b9e\u73b0\u4e3b\u8981\u5bf9\u79f0\u56fe\u6848<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">        <\/span><span style=\"color: #39ADB5; font-style: italic\">pass<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #90A4AE; font-style: italic\"># 3. \u6dfb\u52a0\u5206\u5f62\u7ec6\u8282<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #9C3EDA\">def<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #6182B8\">fractal_details<\/span><span style=\"color: #39ADB5\">():<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">        <\/span><span style=\"color: #90A4AE; font-style: italic\"># \u5728\u8fd9\u91cc\u6dfb\u52a0\u5206\u5f62\u5143\u7d20<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">        <\/span><span style=\"color: #39ADB5; font-style: italic\">pass<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #90A4AE; font-style: italic\"># 4. \u7279\u6b8a\u6548\u679c\uff08\u53ef\u9009\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #9C3EDA\">def<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #6182B8\">special_effects<\/span><span style=\"color: #39ADB5\">():<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">        <\/span><span style=\"color: #90A4AE; font-style: italic\"># \u989c\u8272\u6e10\u53d8\u3001\u52a8\u753b\u6548\u679c\u7b49<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">        <\/span><span style=\"color: #39ADB5; font-style: italic\">pass<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #6182B8\">main_structure<\/span><span style=\"color: #39ADB5\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #6182B8\">fractal_details<\/span><span style=\"color: #39ADB5\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">    <\/span><span style=\"color: #6182B8\">special_effects<\/span><span style=\"color: #39ADB5\">()<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE; font-style: italic\"># \u5f00\u59cb\u521b\u4f5c\uff01<\/span><\/span><\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":384,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,1,5],"tags":[],"class_list":["post-377","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-24","category-1","category-5"],"views":996,"_links":{"self":[{"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":1,"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"predecessor-version":[{"id":378,"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/posts\/377\/revisions\/378"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/media\/384"}],"wp:attachment":[{"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pyteam.cn\/index.php\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}