toString ()也是这两种语言提供的将对象转换成String的系统方法。 ... Python对于toString()的实现提供了两种方法:__repr__(self)和__str__(self)。
確定! 回上一頁