1 # -*- coding: utf-8 -*- 2 __author__ = 'metasequoia' 3 4 import fileinput 5 def file_input(): 6 for line in fileinput.input('E:\Python\SpiderMyCreepy.py'): 7 num = fileinput.lineno() 8 print '%-60s # %2i' % (line.rstrip(),num) 9 if __name__ == "__main__": 10 file_input()