Python __str__(self)和__unicode__(self)
官方文档: mro”>https://docs.python.org/2.7/reference/datamodel.html?highlight=mroobject. str ( self ) Called by the str() built-in function and by the print statement to compute the “informal” string repr
转载
2016-04-15 18:06:07 ·
6949 阅读 ·
1 评论