为什么print()on元组为元组的元素调用__repr__而不是__str__?

时间:2016-05-09 20:46:42

标签: python

为什么print()在元组上为元组的每个元素调用__repr__(使用逗号作为分隔符)而不是__str__

0 个答案:

没有答案