开发者

Python multiple if statements in a single if statement

开发者 https://www.devze.com 2023-03-23 01:44 出处:网络
How do I write the following in a single if statement: 开发者_JAVA技巧if x != 5: if y < 4: statement

How do I write the following in a single if statement:

开发者_JAVA技巧if x != 5:
    if y < 4:
        statement


if x != 5 and y < 4:
  statement
0

精彩评论

暂无评论...
验证码 换一张
取 消