>>> pprint(symbolic(parser.suite("import sys").tolist()))
['file_input',
['stmt',
['simple_stmt',
['small_stmt',
['import_stmt',
['import_name',
['NAME', 'import'],
['dotted_as_names',
['dotted_as_name', ['dotted_name', ['NAME', 'sys']]]]]]],
['NEWLINE', '']]],
['NEWLINE', ''],
['ENDMARKER', '']]
我在运行... import signal
keep_going = True
def my_shutdown_handler(signum, frame):
# set a flag to exit your loop or call what you need to exit gracefully
keep_going = False
if __name__ == "__main__":
signal.signal(signal.SIGTERM, my_shutdown_handler)
while keep_going:
run()
请帮助我解决这个问题。
答案 0 :(得分:0)
您可以尝试用import App from './components/App'
代替'.components/App'