How to fix issues with E402?
问题 We are trying to fix issues with PEP8 E402. Mostly our code is broken on: import os os.environ['LIB_CAN_THROW_ERROR_ON_IMPORT'] = 2 import lib os.environ['LIB_CAN_THROW_ERROR_ON_IMPORT'] = 0 # back - if sys.version_info[0] > 2: import python3lib else: import python2lib - try: import lib except: print('lib is required') sys.exit(1) How to solve these violations? 回答1: The guidelines specified in PEP8 are just that - guidelines. They're a set of rules to follow when they make sense. E402 refers