나는이 표기법을 해석하는 방법을 알고하지 않습니다공식 문서에서 파라미터 주변의 대괄호는 무엇을 의미합니까?
timedelta([days[, seconds[, microseconds[, milliseconds[, minutes[, hours[, weeks]]]]]]])
출처 :https://docs.python.org/2/library/datetime.html#timedelta-objects
내가 불편없이 하나의 키워드 인수를 사용하여이 기능을 사용하고 있습니다하지만 난 이유를 이해할 수 없다 이 표기법의 ¿ 이름이 있습니까? 죄송합니다.이 게시물은 중복되었지만 Google로 전송하는 방법을 모르겠습니다.
가능한 복제 http://stackoverflow.com/questions/2120507/why-do-python-function-docs-include-the-comma-after-the-bracket-for-optional-arg – Greg
훨씬 더 좋습니다! 고맙다 @ 앤디 –