我试图lambda self.status: partial if max_refundable == amount else self.status = refunded用if / else替换成一行。但是,它不能按预期方式工作。有人知道问题出在哪里吗?
if max_refundable == amount:
self.status = partial
else:
self.status = refunded
梵蒂冈之花
MMMHUHU
相关分类