#2 of Basic Concepts of Infra - URL, Protocol 내부 구성
URL and Inside of Protocol
1 2 | if __name__ == "__main__": # 함수 실행 등 로직 작성 | cs |
1 2 3 4 | def sum(a,b): print(a+b) sum(1,2) | cs |
1 2 3 4 5 6 7 | def sum(a,b): print(a+b) sum(1,2) if __name__ == "__main__": sum(1,2) | cs |
1 2 3 4 | # write down module(.py) / class / function list to be called at other modules from .chrome import do_chrome_crawling from .naver import do_naver_crawling | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 | import test.v1.bing import test.v1.unsplash import test.v2.chrome import test.v2.naver if __name__ == "__main__": # version 1 test.v1.do_bing_crawling() test.v1.do_unsplash_crawling() # version 2 test.v2.do_chrome_crawling() test.v2.do_naver_crawling() | cs |
댓글
댓글 쓰기