- %s和%r的区别
- __str__ 返回的%s: easy to read
- __repr__返回的%r: unambiguous: 获取对象各个属性的标准字符串表示形式
Python零散知识管理
猜你喜欢
转载自www.cnblogs.com/ryu-manager/p/9349436.html
今日推荐
周排行