간단 설명 *, **가 입력변수 앞에 붙어야 함 # (*args) : 여러개 input def func1(*args): ... # (**kwargs) : 여러개 key-value , dictionary형태 input def func2(**kwargs): ... 적용예시1 #### 개별 input def func1(input1, input2, input3): print("arg1:", input1) print("arg2:", input2) print("arg3:", input3) func1("myName", "is", "thekkom") #### *args 사용 def func1(*args): print("args:", args) for arg in args: print(arg) func1("myName"..
To resolve external dependencies within project. below things are important.. 1. The compiler should know that where are header '.h' files located in workspace. General specify all header files in "Additional Include Directories". 3. Project Properties -> Configuration Properties -> Linker -> General specify relative path for all lib files in "Additional Library Directories". https://stackoverfl..
stream docker DOC를 보면 https://docs.streamlit.io/knowledge-base/tutorials/deploy/docker netsh interface portproxy show v4tov4 wsl의 port 확인 ifconfig netsh interface portproxy add v4tov4 listenport=[PORT] listenaddress=0.0.0.0 connectport=[PORT] connectaddress=[WSL_IP] netsh interface portproxy add v4tov4 listenport=8501 listenaddress=0.0.0.0 connectport=8501 connectaddress=172.111.111.189 netsh in..
구글계정에서 언어를 영어로 바꾸어도 코랩Colab은 한글로 표기 된다. 이 설정은 변경되지 않는데, 이 때엔... 도움말 > 영어로 보기를 매번 눌러주어야 한다. 다른 방법을 찾아보아도 없는데, 분명 무슨 방법이 있을 듯 한데... _
import shutilimport tempfileimport urllib.requestwith urllib.request.urlopen('http://python.org/') as response: with tempfile.NamedTemporaryFile(delete=False) as tmp_file: shutil.copyfileobj(response, tmp_file)with open(tmp_file.name) as html: pass import osfrom pathlib import Pathimport urllib.requestdef get_download_path(): """Returns the default downloads path for linux or wi..