最佳答案
我知道 python3.6中新的 f 字符串是做什么的,但是结尾怎么样呢!在下面的代码片段中可以找到 r。
def __repr__(self):
return (f'Pizza({self.radius!r}, 'f'{self.ingredients!r})')