Why do I have to use if __name__ == '__main__' in my test file

前端 未结 0 574
夕颜
夕颜 2020-12-07 18:47

I came across the unittest module and I\'m a bit confused. I have a question on the following code in my file test_number.py:

import         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题