Language

    file, directory 존재여부 확인하기

    import os os.path.exists(path) os.path.isdir(path) os.path.isfile(path)

    BeautifulSoup 이용해서 html parsing하기

    #if you don't install bs4, you must install bs4 #pip install bs4from bs4 import BeautifulSoup import requests r = requests.get(url) soup = BeautifulSoup(r.text, "html.parser") mr = soup.find("") print(mr.get_text())

    [C언어] 실수형 MAX, MIN 값

    정수형 변수의 최대, 최소 값은 limits.h에 선언되어 있다. 실수형 변수는 float.h에 선언되어 있다. FLT_MIN 1E-37DBL_MIN 1E-37LDBL_MIN 1E-37 FLT_MAX 1E+37DBL_MAX 1E+37LDBL_MAX 1E+37

    Nested Type 설계 시 주의할 점

    ✓ DO use nested types when the relationship between the nested type and its outer type is such that member-accessibility semantics are desirable. X DO NOT use public nested types as a logical grouping construct; use namespaces for this. X AVOID publicly exposed nested types. The only exception to this is if variables of the nested type need to be declared only in rare scenarios such as subclassi..

    Old csproj to new csproj: Visual Studio 2017 upgrade guide

    http://www.natemcmaster.com/blog/2017/03/09/vs2015-to-vs2017-upgrade/

    What exception should I throw?

    This section describes the standard exceptions provided by the Framework and the details of their usage. The list is by no means exhaustive. Please refer to the .NET Framework reference documentation for usage of other Framework exception types.Exception and SystemExceptionX DO NOT throw System.Exception or System.SystemException.X DO NOT catch System.Exception or System.SystemException in frame..