3 ms·
In python you are recommended to use if __name__ == '__main__': sys.exit (main (sys.argv)) and not put any code that is executed at the top-level. O
by 1718627440 1y ago
In python you are recommended to use
if __name__ == '__main__':
sys.exit (main (sys.argv))
and not put any code that is executed at the top-level. Otherwise its also executed when you import the file.