Python coding convention
모든 프로그래밍 언어가 그렇듯 python도 conding cenvention이 존재한다. 당연히 이대로 코딩을 한다면 좋다는 의미이다. PEP 8 -- https://www.python.org/dev/peps/pep-0008/ 들여쓰기 Space 4칸으로 지정한다. 참고로 나는 절대로 tab을 사용하지 않는다. Space와 tab을 혼용해서 사용해서는 안된다. # Aligned with opening delimiter. foo = long_function_name(var_one, var_two, var_three, var_four) # Add 4 spaces (an extra level of indentation) to distinguish arguments from the rest. def long_..
2020.02.25