<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Python on A Moment's Rest</title><link>https://blog.a-moment.top/zh/tags/python/</link><description>Recent content in Python on A Moment's Rest</description><generator>Hugo -- gohugo.io</generator><image><url>https://blog.a-moment.top/coffee.png</url><title>A Moment's Rest</title><link>https://blog.a-moment.top/zh/tags/python/</link></image><language>zh</language><lastBuildDate>Tue, 22 Sep 2026 07:47:05 +0000</lastBuildDate><atom:link href="https://blog.a-moment.top/zh/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>怎么找到第 n 个素数？</title><link>https://blog.a-moment.top/zh/posts/math_note/sieve_method/</link><pubDate>Fri, 18 Sep 2026 23:32:57 +0800</pubDate><guid>https://blog.a-moment.top/zh/posts/math_note/sieve_method/</guid><category>Number Theory</category><category>Python</category><media:thumbnail url="https://blog.a-moment.top/images/%E3%83%A8%E3%83%92%E3%83%A9.jpg"/><description>&lt;img src="https://blog.a-moment.top/images/%E3%83%A8%E3%83%92%E3%83%A9.jpg" alt="Featured image of post 怎么找到第 n 个素数？" /&gt;&lt;p&gt;&lt;em&gt;素数，一个神奇的概念，重要但难以预测，直到我们有了计算机。那么要怎么找到第 $n$ 个素数呢？又要怎么找出 $n$ 以下的所有素数呢？&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;头图选自 &lt;a class="link" href="https://www.pixiv.net/en/users/96825901" target="_blank" rel="noopener"&#10; &gt;白い雪&lt;/a&gt;老师所绘的 &lt;a class="link" href="https://www.pixiv.net/en/artworks/128484858" target="_blank" rel="noopener"&#10; &gt;ヨヒラ&lt;/a&gt;，其实是拿不拿的“曲绘”。太好了，快把 &lt;strong&gt;ヨヒラ&lt;/strong&gt; 这首歌端上来吧！&lt;/em&gt;&lt;/p&gt;</description></item><item><title>相场模拟，但是用很多语言 II</title><link>https://blog.a-moment.top/zh/posts/pf_note/impl_spinodal/impl_spinodal_2/</link><pubDate>Wed, 01 Apr 2026 00:00:00 +0800</pubDate><guid>https://blog.a-moment.top/zh/posts/pf_note/impl_spinodal/impl_spinodal_2/</guid><category>Python</category><category>Numerical Analysis</category><category>Spinodal Decomposition</category><media:thumbnail url="https://blog.a-moment.top/images/Alice-2.png"/><description>&lt;img src="https://blog.a-moment.top/images/Alice-2.png" alt="Featured image of post 相场模拟，但是用很多语言 II" /&gt;&lt;p&gt;&lt;em&gt;上一节我们尝试了使用 C++ 来跑相场模拟。除了 C++ 之外，科学计算的另一大热门则是 Python 这门非常火爆的语言。Python 能带给这个模拟什么有趣的特点呢？它的实现可以怎么做呢？一起来看看吧~&lt;/em&gt;&lt;/p&gt;</description></item><item><title>机器学习用 Ubuntu WSL 配置记录</title><link>https://blog.a-moment.top/zh/posts/others/wsl_ubuntu_config/</link><pubDate>Sat, 29 Nov 2025 14:28:17 +0800</pubDate><guid>https://blog.a-moment.top/zh/posts/others/wsl_ubuntu_config/</guid><category>CUDA</category><category>WSL</category><category>Linux</category><category>Shell</category><category>Python</category><media:thumbnail url="https://blog.a-moment.top/images/%E3%83%94%E3%83%B3%E3%82%AF%E3%81%AE%E5%A4%A2.png"/><description>&lt;img src="https://blog.a-moment.top/images/%E3%83%94%E3%83%B3%E3%82%AF%E3%81%AE%E5%A4%A2.png" alt="Featured image of post 机器学习用 Ubuntu WSL 配置记录" /&gt;&lt;p&gt;&lt;em&gt;某人需要配置环境时做机器学习，这是他配置环境后电脑发生的变化……&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;头图选择了可爱的小羊，来自 &lt;a class="link" href="https://www.pixiv.net/users/3402557" target="_blank" rel="noopener"&#10; &gt;Ruziかねつカーぺット&lt;/a&gt; 太太的 &lt;a class="link" href="https://www.pixiv.net/artworks/112910033#1" target="_blank" rel="noopener"&#10; &gt;ピンクの夢&lt;/a&gt;，粉粉的，可爱捏&lt;/em&gt;&lt;/p&gt;</description></item><item><title>2025! 非零的最后一位数字是多少？</title><link>https://blog.a-moment.top/zh/posts/math_note/factorial_last_digits/</link><pubDate>Mon, 25 Aug 2025 18:01:23 +0800</pubDate><guid>https://blog.a-moment.top/zh/posts/math_note/factorial_last_digits/</guid><category>Math problems</category><category>Number Theory</category><category>Python</category><category>Algorithm</category><media:thumbnail url="https://blog.a-moment.top/images/%E6%B8%85%E6%B0%B4%E5%90%9F.jpg"/><description>&lt;img src="https://blog.a-moment.top/images/%E6%B8%85%E6%B0%B4%E5%90%9F.jpg" alt="Featured image of post 2025! 非零的最后一位数字是多少？" /&gt;&lt;p&gt;&lt;em&gt;在知乎上看到了&lt;a class="link" href="https://www.zhihu.com/question/666502327" target="_blank" rel="noopener"&#10; &gt;这样一个有趣的问题&lt;/a&gt;，以及&lt;a class="link" href="https://www.zhihu.com/question/666502327/answer/18810753693" target="_blank" rel="noopener"&#10; &gt;很厉害的回答&lt;/a&gt;，实在是很有意思。这里就写一写我的解决这个问题的方法以及当时的心路历程吧。&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;头图出自 &lt;a class="link" href="https://www.pixiv.net/en/users/8605991" target="_blank" rel="noopener"&#10; &gt;fasnakegod&lt;/a&gt; 大大的 &lt;a class="link" href="https://www.pixiv.net/en/artworks/124177921" target="_blank" rel="noopener"&#10; &gt;清水吟&lt;/a&gt;，搭配的曲子是 &lt;a class="link" href="https://ddby.jp/" target="_blank" rel="noopener"&#10; &gt;&lt;strong&gt;DDBY&lt;/strong&gt;&lt;/a&gt; 的 &lt;em&gt;Cramped space&lt;/em&gt;，笛声真的很棒，搭配轻快的鼓组和旋律，给人一种很悠闲放松的感觉呢。希望你也喜欢~&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Phase Field: 相场模拟学习笔记 II</title><link>https://blog.a-moment.top/zh/posts/pf_tutorial/pf_tutorial_2/</link><pubDate>Fri, 22 Nov 2024 00:00:00 +0800</pubDate><guid>https://blog.a-moment.top/zh/posts/pf_tutorial/pf_tutorial_2/</guid><category>Tutorial</category><category>Numerical Analysis</category><category>Python</category><media:thumbnail url="https://blog.a-moment.top/images/Skadi.png"/><description>&lt;img src="https://blog.a-moment.top/images/Skadi.png" alt="Featured image of post Phase Field: 相场模拟学习笔记 II" /&gt;&lt;p&gt;&lt;em&gt;接上一节内容，这节会简单介绍 Python 的一些语法知识，以及尝试使用 Python 实现上节所列出来的部分算法。&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="python-初探索"&gt;Python 初探索&#10;&lt;/h2&gt;&lt;h3 id="简介"&gt;简介&#10;&lt;/h3&gt;&lt;p&gt;Python 是一种蟒蛇，而在编程语境下，Python 则是一门十分受欢迎的编程语言。Python 具有语法友好（接近英语），功能强大（感谢开源与社区），社区活跃等优秀的特点，让 Python 成为入门编程的一个好选择。&lt;/p&gt;</description></item><item><title>Python + VS Code 快速配置</title><link>https://blog.a-moment.top/zh/posts/tools_note/vsc_py/</link><pubDate>Fri, 01 Nov 2024 00:00:00 +0800</pubDate><guid>https://blog.a-moment.top/zh/posts/tools_note/vsc_py/</guid><category>Python</category><category>VS Code</category><category>Document</category><category>Tutorial</category><media:thumbnail url="https://blog.a-moment.top/images/%E5%A6%B9%E7%BA%A2.jpeg"/><description>&lt;img src="https://blog.a-moment.top/images/%E5%A6%B9%E7%BA%A2.jpeg" alt="Featured image of post Python + VS Code 快速配置" /&gt;&lt;p&gt;&lt;em&gt;这是一篇写给初学 Python 的同学的教程，帮助使用 VS Code 快速配置好 Python 的开发环境，写于今年9月14日，先搬运至此并改为 Markdown，作为 Programming部分的第一篇博文&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>