[Python] __str__ v.s. __repr__




在 “Python for Unix and Linux System Administration” 這本書上,看到一個用來比較 __str__ 跟 __repr__ 的簡單程式。

覺得還不錯!




Be the first to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.