评估变量赋值我知道Python的三元运算符: result = a if b else c 但是如果a和b是同一件事呢?让我举个例子: tasks = ["foo", "bar"] def tasksLeft( ...2024-06-14 已阅读: n次