标签:
运行后一堆空白行
>>> fname=input(‘Enter filename:‘) Enter filename:hongding >>> try: fobj=open(fname,‘r‘) except(IOError,e): print(‘***file open error:‘,e) else: for eachLine in fobj: print(eachLine,)fobj.close() SyntaxError: invalid syntax >>> fname=input(‘Enter filename:‘) Enter filename:hongding >>> try: fobj=open(fname,‘r‘) except(IOError,e): print(‘***file open error:‘,e) else: for eachLine in fobj: print(eachLine,) fobj.close()
标签:
原文地址:http://www.cnblogs.com/hhj187/p/4676115.html