x = int(input("Please ente an integer:"))
#y = float(input("Please enter a float"))
if x < 0 :
x = 0
print("Negative changed to zero")
elif x == 0 :
print("zero")
print('zero')
elif x == 1 :
print("single")
else :
print("more")
"""
if statements:
if condition_one :
statement_one
elif condition_two :
statement_two
elif....
else statement_n
"""
Python之if判断语句
最新推荐文章于 2025-02-19 16:37:11 发布
