代码看是没问题的,是格式问题吧.
x = 100if x>50: print 'x is high,' print 'and high up in the sky!'elif x==50: print x
if,elif,else这三个是同一级的并列关系,合起来组成一个代码块,所以缩进要一致
缩进问题吧。elif要和if对其。你和print对其了,要向前缩进一格