<?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 jingyi&#39;s blog</title>
    <link>https://jingyi.blog/blog/python/</link>
    <description>Recent content in Python on jingyi&#39;s blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright>
    <lastBuildDate>Wed, 10 Feb 2021 06:23:49 +0000</lastBuildDate><atom:link href="https://jingyi.blog/blog/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fluent Python 读书笔记</title>
      <link>https://jingyi.blog/fluent-python-%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Wed, 10 Feb 2021 06:23:49 +0000</pubDate>
      
      <guid>https://jingyi.blog/fluent-python-%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/</guid>
      <description>1. 数据模型 data model obj[key] -&amp;gt; obj.__getitem__(key) __getitem__ 可以读作 dunder-getitem (double-duner getitem)， 这些 magic method 也称作 dunder method 列表：__len__ 和 __getitem__ 自定义的类只要实现了 __len__ 和 __getitem__ 这两个 magic method</description>
    </item>
    
    <item>
      <title>Effective Python 读书笔记</title>
      <link>https://jingyi.blog/effective-python-%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Wed, 10 Feb 2021 06:14:20 +0000</pubDate>
      
      <guid>https://jingyi.blog/effective-python-%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/</guid>
      <description>1. Pythonic Thinking 1. version python -V python --version import sys print(sys.version_info) print(sys.version) # try dir(sys) to find out more 2. PEP8 Python Enhancement Proposal #8 3. bytes, str and unicode 4. 从复杂表达式抽出帮助 (helper) 函数 不要写过长的单行逻辑 if/else 优于 and/or 5. 序列分片 Slice Sequence 从左向右</description>
    </item>
    
    <item>
      <title>Handy IPython Tips</title>
      <link>https://jingyi.blog/handy-ipython-tips/</link>
      <pubDate>Fri, 10 Apr 2020 05:43:50 +0000</pubDate>
      
      <guid>https://jingyi.blog/handy-ipython-tips/</guid>
      <description>the magics I/O reload modules you just modified on the fly, autoreload:
%load_ext autoreload %autoreload 2 save object for later use, storemagic:
# for example you got a counter c = Counter(&amp;#34;a b c&amp;#34;.split()) # you can save it in IPython&amp;#39;s database and quit %store c exit() # when you want your counter back, simply type: %store -r save the ad hoc scripts you typed in IPython session, logstart:
%logstart from awesome import me exit() # cat ipython_log.</description>
    </item>
    
  </channel>
</rss>
