python Python If_else语句示例

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python Python If_else语句示例相关的知识,希望对你有一定的参考价值。

'''
@author: OpnSrcConstruction
'''
 

x = 5

if x == 4:
    print('x is equal to 4')
else:
    print('x is not equal to 0')

以上是关于python Python If_else语句示例的主要内容,如果未能解决你的问题,请参考以下文章