Use unittest, if __name__ == '__main__': a solution where the code is not executed

Reference: https: //www.cnblogs.com/hanmk/p/8656574.html

Guess you like

Origin www.cnblogs.com/wang-mengmeng/p/11304513.html