<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Python on Yao</title>
    <link>https://www.yaolugnu.com/tags/python/</link>
    <description>Recent content in Python on Yao</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Fri, 06 Oct 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.yaolugnu.com/tags/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Emacs Eglot Python config</title>
      <link>https://www.yaolugnu.com/post/emacs_eglot_python/</link>
      <pubDate>Fri, 06 Oct 2023 00:00:00 +0000</pubDate>
      <guid>https://www.yaolugnu.com/post/emacs_eglot_python/</guid>
      <description>How to config The config is very sample just show as below. Prerequisites One of the python server need to be installed, for example I chosed the pyright&#xA;1 $ pip install pyright Emacs Elisp&#xA;1 2 3 4 5 (use-package eglot :config (add-to-list &amp;#39;eglot-server-programs &amp;#39;(python-mode . (&amp;#34;pyright-langserver&amp;#34; &amp;#34;--stdio&amp;#34;))) (add-hook &amp;#39;python-mode-hook &amp;#39;eglot-ensure)) </description>
    </item>
    <item>
      <title>Command Pattern in Python</title>
      <link>https://www.yaolugnu.com/post/command_pattern/</link>
      <pubDate>Thu, 01 Apr 2021 00:00:00 +0000</pubDate>
      <guid>https://www.yaolugnu.com/post/command_pattern/</guid>
      <description>Command 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 &amp;#34;&amp;#34;&amp;#34; This is a Command Class &amp;#34;&amp;#34;&amp;#34; class Command(ABC): &amp;#34;&amp;#34;&amp;#34; The Command interface declares a method for executing a command. &amp;#34;&amp;#34;&amp;#34; @abstractmethod def execute(self) -&amp;gt; None: pass @abstractmethod def undo(self) -&amp;gt; None: pass LightOnCommand 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 class LightOnCommand(Command): &amp;#34;&amp;#34;&amp;#34; We need cohersion the Receiver and implement real command object &amp;#34;&amp;#34;&amp;#34; def __init__(self, receiver: Receiver, a: str) -&amp;gt; None: self.</description>
    </item>
    <item>
      <title>This is a configuration post.</title>
      <link>https://www.yaolugnu.com/post/hidden-post/</link>
      <pubDate>Tue, 04 Jun 2019 17:40:19 +0800</pubDate>
      <guid>https://www.yaolugnu.com/post/hidden-post/</guid>
      <description>&lt;section class=&#34;code-box-demo&#34;&gt;&lt;ul class=&#34;ant-timeline ant-timeline-alternate&#34;&gt;&lt;li class=&#34;ant-timeline-item ant-timeline-item-left&#34;&gt;&lt;div class=&#34;ant-timeline-item-tail&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-head ant-timeline-item-head-blue&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-content&#34;&gt;Create a services site 2015-09-01&lt;/div&gt;&lt;/li&gt;&lt;li class=&#34;ant-timeline-item ant-timeline-item-right&#34;&gt;&lt;div class=&#34;ant-timeline-item-tail&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-head ant-timeline-item-head-green&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-content&#34;&gt;Solve initial network problems 2015-09-01&lt;/div&gt;&lt;/li&gt;&lt;li class=&#34;ant-timeline-item ant-timeline-item-left&#34;&gt;&lt;div class=&#34;ant-timeline-item-tail&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-head ant-timeline-item-head-custom ant-timeline-item-head-blue&#34;&gt;&lt;span role=&#34;img&#34; aria-label=&#34;clock-circle&#34; class=&#34;anticon anticon-clock-circle&#34; style=&#34;font-size: 16px;&#34;&gt;&lt;svg viewBox=&#34;64 64 896 896&#34; focusable=&#34;false&#34; data-icon=&#34;clock-circle&#34; width=&#34;1em&#34; height=&#34;1em&#34; fill=&#34;currentColor&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z&#34;&gt;&lt;/path&gt;&lt;path d=&#34;M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-content&#34;&gt;Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.&lt;/div&gt;&lt;/li&gt;&lt;li class=&#34;ant-timeline-item ant-timeline-item-right&#34;&gt;&lt;div class=&#34;ant-timeline-item-tail&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-head ant-timeline-item-head-red&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-content&#34;&gt;Network problems being solved 2015-09-01&lt;/div&gt;&lt;/li&gt;&lt;li class=&#34;ant-timeline-item ant-timeline-item-left&#34;&gt;&lt;div class=&#34;ant-timeline-item-tail&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-head ant-timeline-item-head-blue&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-content&#34;&gt;Create a services site 2015-09-01&lt;/div&gt;&lt;/li&gt;&lt;li class=&#34;ant-timeline-item ant-timeline-item-last ant-timeline-item-right&#34;&gt;&lt;div class=&#34;ant-timeline-item-tail&#34;&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-head ant-timeline-item-head-custom ant-timeline-item-head-blue&#34;&gt;&lt;span role=&#34;img&#34; aria-label=&#34;clock-circle&#34; class=&#34;anticon anticon-clock-circle&#34; style=&#34;font-size: 16px;&#34;&gt;&lt;svg viewBox=&#34;64 64 896 896&#34; focusable=&#34;false&#34; data-icon=&#34;clock-circle&#34; width=&#34;1em&#34; height=&#34;1em&#34; fill=&#34;currentColor&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z&#34;&gt;&lt;/path&gt;&lt;path d=&#34;M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&#34;ant-timeline-item-content&#34;&gt;Technical testing 2015-09-01&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/section&gt;&#xA;&lt;p&gt;This post is hidden from the home page.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
