文本文件是否正确?

问题描述 投票:-1回答:1
a= flat(input())

if a>0
    print("Positive Number')
          else
    if a<0
        print("Negative Number")
        else
        print("Zero")
python
1个回答
0
投票

这是您的格式化代码:

a= float(input())
if a>0:
    print("Positive Number")
elif a<0:
    print("Negative Number")
else:
    print("Zero")
© www.soinside.com 2019 - 2024. All rights reserved.