PythonNote019--Python中main

介紹-if __name__ == '__main__'的用法,Talk is cheap,Show me the code. 兩個腳本:python file one.py # file one.py def func(): print("func() in one.py") print("top-level in one.py") if __name__ == "__mai
相關文章
相關標籤/搜索