Defining the print behavior of a class sets the output when an object of that class is passed into print(). Define __str__() for a class to set print behavior.
確定! 回上一頁