我的Python代码(初学者)出了什么问题?

时间:2017-04-17 04:29:34

标签: python

print 'Welcome to the Pig Latin Translator!'

original = raw_input("Enter a Word:")
if len(original) > 0 :
print original 
else : 
    print "Empty!"

1 个答案:

答案 0 :(得分:-1)

if语句后需要缩进。

print 'Welcome to the Pig Latin Translator!'

original = raw_input("Enter a Word:")
if len(original) > 0 :
    print original 
else : 
    print "Empty!"