估计是eclipse有关
>>> while True:
... s = str(raw_input('Enter something : '))
... if s == 'quit':
... break
... print 'Length of the string is', len(s)
...
Enter something : sd
Length of the string is 2
Enter something : sdfsdf
Length of the string is 6
Enter something : quit
>>>