使用unittest,if __name__ == '__main__':里代码不执行的解决办法

参考:https://www.cnblogs.com/hanmk/p/8656574.html