<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Python on Wong&#39;s Blog</title>
    <link>https://blog.wssh.dev/tags/python/</link>
    <description>Recent content in Python on Wong&#39;s Blog</description>
    <generator>Hugo -- 0.146.6</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 05 Jul 2023 11:47:33 +0000</lastBuildDate>
    <atom:link href="https://blog.wssh.dev/tags/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ubuntu Python 多版本安装</title>
      <link>https://blog.wssh.dev/posts/ubuntu-python/</link>
      <pubDate>Wed, 05 Jul 2023 11:47:33 +0000</pubDate>
      <guid>https://blog.wssh.dev/posts/ubuntu-python/</guid>
      <description>&lt;h2 id=&#34;概述&#34;&gt;概述&lt;/h2&gt;
&lt;p&gt;由于 Python 3 有几次较为跳跃的更新，导致大量使用 Python 3 作为开发工具的软件会对 Python 3 的版本进行严格限制，如限制使用 Python 3.8 - Python 3.9 版本。这要求开发者开发环境内应具有多版本的 python 。在 Ubuntu 等 Linux 系统下，Python 的安装都是使用的源码编译方法，这对一些 Python 开发者并不友好，本文会给出一种较为简单的多版本 Python 安装方法。&lt;/p&gt;</description>
    </item>
    <item>
      <title>使用 Pandas 分析亿行数据</title>
      <link>https://blog.wssh.dev/posts/python-pandas-million/</link>
      <pubDate>Wed, 01 Mar 2023 23:47:33 +0000</pubDate>
      <guid>https://blog.wssh.dev/posts/python-pandas-million/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;声明，本文译自 &lt;a href=&#34;https://datapythonista.me/blog/pandas-with-hundreds-of-millions-of-rows&#34;&gt;pandas with hundreds of millions of rows&lt;/a&gt;。 如果您的英语水平较好，可以阅读原文。为了译文更加流畅，译者补充了部分内容。&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2 id=&#34;问题&#34;&gt;问题&lt;/h2&gt;
&lt;p&gt;我们希望获得国内航班平均延误最长的 5 个美国机场。&lt;/p&gt;</description>
    </item>
    <item>
      <title>基于Python与GraphQL的链上数据分析实战</title>
      <link>https://blog.wssh.dev/posts/on-chain-data-basement/</link>
      <pubDate>Tue, 06 Dec 2022 19:47:33 +0000</pubDate>
      <guid>https://blog.wssh.dev/posts/on-chain-data-basement/</guid>
      <description>&lt;h2 id=&#34;概述&#34;&gt;概述&lt;/h2&gt;
&lt;p&gt;本文主要介绍如何通过免费且高效的的基于GraphQL的&lt;a href=&#34;https://basement.dev/&#34;&gt;basement&lt;/a&gt;进行部分链上数据分析实战。本文不要求读者具有&lt;code&gt;GraphQL&lt;/code&gt;相关经验，但要求读者会使用&lt;code&gt;Python&lt;/code&gt;中的&lt;code&gt;Pandas&lt;/code&gt;库，这是本文主要使用的数据分析工具。换言之，本文适用于了解数据分析而不了解链上数据获取的读者。本文会涵盖以下内容:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;GraphQL&lt;/code&gt;检索数据基础入门&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Basement&lt;/code&gt;的基础API实战&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;在阅读本文前，读者最好安装一个支持&lt;code&gt;GraphQL&lt;/code&gt;请求方法的API调试工具，在此处，我个人使用的是&lt;a href=&#34;https://www.postman.com/&#34;&gt;Postman&lt;/a&gt;软件，但读者选择其他软件亦可。本文使用了新兴 Web3 链上数据API提供商&lt;a href=&#34;https://basement.dev/&#34;&gt;basement&lt;/a&gt;，此处我们使用的是免费版，无需 API Key 等配置，具体限制参考下图:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Python异步编程实战入门:从概念到实战</title>
      <link>https://blog.wssh.dev/posts/python-asyncio/</link>
      <pubDate>Thu, 01 Dec 2022 23:47:33 +0000</pubDate>
      <guid>https://blog.wssh.dev/posts/python-asyncio/</guid>
      <description>&lt;h2 id=&#34;概述&#34;&gt;概述&lt;/h2&gt;
&lt;p&gt;在Python中存在&lt;code&gt;GIL&lt;/code&gt;机制，该机制保证了在Python中同时间内仅能运行一行代码，这导致了Python无法真正实现多线程。但Python中存在另一种神奇的机制，即异步机制。在计算机领域，我们经常提到异步、并行、多线程等名词，但本文不想讨论这些名词具体的含义，这些对于概念的讨论在很多情况下是无意义的。本文将专注于介绍异步机制，在本文的最后，我们会引入多线程等内容以进一步提高Python性能。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Python2Go：将Python豆瓣爬虫使用Go重构</title>
      <link>https://blog.wssh.dev/posts/douban-python-crawler-to-go/</link>
      <pubDate>Tue, 05 Jul 2022 13:50:22 +0000</pubDate>
      <guid>https://blog.wssh.dev/posts/douban-python-crawler-to-go/</guid>
      <description>&lt;h2 id=&#34;概述&#34;&gt;概述&lt;/h2&gt;
&lt;p&gt;本篇文章主要适用于Python爬虫程序员使用Go&lt;!-- raw HTML omitted --&gt;注释&lt;!-- raw HTML omitted --&gt;(Golang，在下文中主要使用goalng名词。)编写爬虫，由于目前我个人水平有限，所以此篇文章主要介绍一些简单的爬虫编写，主要包括使用&lt;code&gt;requests&lt;/code&gt;、&lt;code&gt;bs4&lt;/code&gt;等库的初级Python爬虫的改写，暂时不涉及多线程、异步、反爬、登录等复杂情况。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
