#coding:utf-8 import fileinput def main(): lineno=0 for line in fileinput.input(r'G:\subprocess.log'): lineno=fileinput.filelineno() return lineno if __name__ == '__main__': print main()
版权声明:本文为博主原创文章,未经博主允许不得转载。
#coding:utf-8 import fileinput def main(): lineno=0 for line in fileinput.input(r'G:\subprocess.log'): lineno=fileinput.filelineno() return lineno if __name__ == '__main__': print main()
版权声明:本文为博主原创文章,未经博主允许不得转载。