-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P.146 에서 질문 드립니다. #52
Comments
제가 답글을 남기는게 조금 주제 넘을 수도 있지만 제가 아는 선에서 말씀을 드리자면 해당 오류는 자료형이 맞지 않거나 함수 호출 규약을 틀렸을 경우에 나타나는 오류로 알고 있습니다. 예를 들어 제가 글쓴분의 전체적인 코드를 알 수 없어 정확하게 답변은 불가능 하지만 간단하게 예시를 들자면,
|
네, 답변 감사합니다. 말씀하신 것처럼 저는 문자열에 대한 슬라이싱인 줄 알았는데, |
@legendhangkali 답변 감사드립니다. 감사합니다. |
네, 확인 감사드립니다!! |
안녕하세요.
P.146에서
s[:] = s[::-1] 코드는 파이참에서 아래와 같은 error가 발생하는데,
리트코드에서는 사용 가능하다고 말씀하신 것으로 이해하였습니다.
이건 리트코드의 문제인지,
아니면 python 관련하여 제가 모르는 부분에 의해 발생하는 차이인지 문의 드립니다.
Traceback (most recent call last):
File "C:/Users/User/PycharmProjects/pythonProject/main.py", line 21, in
s[:] = s[::-1]
TypeError: 'str' object does not support item assignment
감사합니다.
The text was updated successfully, but these errors were encountered: