阅读背景:

什么是在python中执行禁止操作的标准方法?

来源:互联网 

I often find myself writing if / elif / else constructs in python, and I want to include options which can occur, but for which the corresponding action is to do nothing. I realise I could just exclude those if statements, but for readability I find it helps to include them all, so that if you are looking through the code you can see what happens as a result of each option. How do I code the no-op? Currently, I'm doing it like this:I often find myself writing if / elif / else co




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: