Condition as expression in Python

后端 未结 0 1822
一向
一向 2020-12-18 23:08

Is there a way to programm this line without if?

if a > 0 : a-=1

I am looking for an expression instead an if, b

相关标签:
回答
  • 消灭零回复
提交回复
热议问题