﻿{"id":574,"date":"2020-11-10T11:45:32","date_gmt":"2020-11-10T03:45:32","guid":{"rendered":"https:\/\/byy3.com\/?p=574"},"modified":"2021-01-09T10:14:00","modified_gmt":"2021-01-09T02:14:00","slug":"%e5%85%b3%e4%ba%8epython3%e5%ae%89%e8%a3%85turtle%e5%ba%93%e8%bf%90%e7%94%a8%e5%9c%a8linux%e7%8e%af%e5%a2%83%e4%b8%8b%e7%94%bb%e5%9b%be%e7%9a%84%e5%9d%91","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=574","title":{"rendered":"\u5173\u4e8epython3\u5b89\u88c5turtle\u5e93\u8fd0\u7528\u5728linux\u73af\u5883\u4e0b\u753b\u56fe\u7684\u5751"},"content":{"rendered":"<p>1\uff0c\u5b9e\u9a8c\u4ee3\u7801<\/p>\n<p>import turtle<\/p>\n<p>turtle.pensize(4)<br \/>\nturtle.pencolor('red')<\/p>\n<p>turtle.forward(100)<br \/>\nturtle.right(90)<br \/>\nturtle.forward(100)<br \/>\nturtle.right(90)<br \/>\nturtle.forward(100)<br \/>\nturtle.right(90)<\/p>\n<p>2\uff0c\u8fd0\u7528\u5728\u4e91\u670d\u52a1\u5668linux\u4e2d\uff0cdebian\u73af\u5883\u642d\u914dlxde\u684c\u9762\u73af\u5883\uff0c<\/p>\n<p>\u7531\u4e8eturtle\u5e93\u6700\u65b0\u7248\u672c\u5b98\u65b9\u7f51\u5740https:\/\/pypi.org\/search\/?q=turtle<\/p>\n<p>\u4e3aturtle 0.0.2\u00a0 \u53ef\u767b\u5f55\u684c\u9762\u7ec8\u7aefterminal\u91ccwget\u00a0 https:\/\/files.pythonhosted.org\/packages\/ff\/f0\/21a42e9e424d24bdd0e509d5ed3c7dfb8f47d962d9c044dba903b0b4a26f\/turtle-0.0.2.tar.gz<\/p>\n<p>\u7136\u540etar zxvf turtle-0.0.2.tar.gz \u7136\u540ecd turtle-0.0.2\u8fdb\u5165\u5230\u76ee\u5f55 nano setup.py<\/p>\n<h3><a name=\"t1\"><\/a><a name=\"t1\"><\/a>\u89e3\u51b3\u65b9\u6cd5<\/h3>\n<p>\u6839\u636e\u9519\u8bef\u4fe1\u606f\u4e2d\u7684\u7ed9\u5b9a\u7684\u5730\u5740\uff0c\u4e0b\u8f7dturtle\uff08<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/files.pythonhosted.org\/packages\/ff\/f0\/21a42e9e424d24bdd0e509d5ed3c7dfb8f47d962d9c044dba903b0b4a26f\/turtle-0.0.2.tar.gz\" rel=\"nofollow\" >\u5f00\u59cb\u4e0b\u8f7d<\/a>\uff09\uff0c\u89e3\u538b\u540e\uff0c\u6253\u5f00setup.py\uff0c\u5c06\u7b2c40\u884c\u4ee3\u7801\u4fee\u6539\u4e3a\uff1a<\/p>\n<pre class=\"has\"><code class=\"language-python hljs\"><span class=\"hljs-keyword\">except<\/span> (ValueError, ve):<\/code><\/pre>\n<p>\u91cd\u65b0\u6267\u884c\u5982\u4e0b\u5b89\u88c5\u547d\u4ee4\uff1a<\/p>\n<pre class=\"has\"><code class=\"language-python hljs\">pip install -e C:\\Users\\Downloads\\turtle<span class=\"hljs-number\">-0.0<\/span><span class=\"hljs-number\">.2<\/span><\/code><\/pre>\n<p>-e\u53c2\u6570\u540e\u9762\u662f\u521a\u4fee\u6539\u7684turtle-0.0.2\u6240\u5728\u7684\u76ee\u5f55\uff0c\u4f7f\u7528\u4fee\u6539\u540e\u7684\u5b89\u88c5\uff0c\u6210\u529f\u5b89\u88c5\u540e\uff0c\u5982\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"has\" data-original=\"https:\/\/img-blog.csdnimg.cn\/201901191307043.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xfMTUxNTYwMjQxODk=,size_16,color_FFFFFF,t_70\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" width=\"800\" height=\"224\" title=\"\u5173\u4e8epython3\u5b89\u88c5turtle\u5e93\u8fd0\u7528\u5728linux\u73af\u5883\u4e0b\u753b\u56fe\u7684\u5751\u63d2\u56fe\" alt=\"\u5173\u4e8epython3\u5b89\u88c5turtle\u5e93\u8fd0\u7528\u5728linux\u73af\u5883\u4e0b\u753b\u56fe\u7684\u5751\u63d2\u56fe\" \/><\/p>\n<p>\u6d4b\u8bd5 \u7ec8\u7aef\u8f93\u5165python3\u00a0 \u7136\u540eimport turtle\u65e0\u63d0\u793a\u8868\u793a\u6210\u529f \u6d4b\u8bd5\u7a0b\u5e8f\u7ee7\u7eed\u9519\u8bef<\/p>\n<p>\u4f9d\u8d56\u9519\u8beftkinter\u00a0 \u4f7f\u7528<\/p>\n<h1 id=\"articleContentId\" class=\"title-article\">python tkinter\u6a21\u5757\u5b89\u88c5<\/h1>\n<p>pip3 search tkinter\u6216\u8005python3 -m pip search tkinter\u00a0 \u00a0\u6216 sudo apt search python3-tk<\/p>\n<p>\u7136\u540e\u518dapt install python3-tk\u00a0 \u00a0(\u524d\u63d0\u662fapt-get update)<\/p>\n<p>\u5b89\u88c5\u597d\u518d\u6b21\u6d4b\u8bd5\u7a0b\u5e8f\u6210\u529f \uff08\u5728ssh\u7ec8\u7aef\u73af\u5883\u4e0b\u65e0\u6cd5\u8c03\u7528turtle\u5e93\u8fd0\u884c\u9700\u8981\u684c\u9762\u73af\u5883\uff09 vnc \u6216\u8005 3389<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\uff0c\u5b9e\u9a8c\u4ee3\u7801 import turtle turtle.pensize(4) turtle.pencolor( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,20],"tags":[353,352],"class_list":["post-574","post","type-post","status-publish","format-standard","hentry","category-linux","category-python","tag-linux","tag-python"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=574"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/574\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}