【发布时间】:2018-05-02 12:57:08
【问题描述】:
我正在尝试创建一个多层 IF 语句,但我不确定以下语句的格式是否正确。
我在阅读下面的嵌套 IF 语句时遇到问题,是否可以以更有效的方式编写此代码?
if (a>= gT) and (cLow> rBT):
print("Alpha 1")
if (a_high> c_high) and (c_low < d_low):
if (a> abc) and (a< c_low):
print("Final Count")
if (min(a, b) > min(c, d)) and \
(max(e,f) > max(g, h)): print("All Memory Deleted")
【问题讨论】:
-
您可以使用以下内容来格式化您的 python 代码:codebeautify.org/python-formatter-beautifier
标签: python if-statement