pycharm terminal and run giving different results
问题 Using Pycharm to write a python script for loading and formatting a fixed width file I'm getting different results when I run the script in terminal (within Pycharm or locally) and when using the run option in Pycharm. Any reason why this is the case and which is correct? with open('uk_dcl_mrg.txt', 'rb') as f: ct = 0 for line in f: ct += 1 #### OUTOUT #### for i in layout: ## Loop to create dictionary headerdict[i[0]] = line[i[1]:i[2]] if (headerdict['CORP-STATUS-IND'] == "\x9f"): headerdict