#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목이런 코드는 절대로 만들면 안되겠지만,,,2019-04-08 15:31
작성자 Level 10

혹시라도 만들게 되면, 파이선은 친절하게 이렇게 해줍니다.

"Degenerate slice indices are handled gracefully: an index that is too large is replaced by the string size, an upper bound smaller than the lower bound returns an empty string."

따라서, 본인이 돌려본 것과 같은 결과가 나온거지요.

참조: https://docs.python.org/3.0/tutorial/introduction.html 

댓글