Skip to content
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

STEP 5. 문자열 #6

Open
11 tasks done
letsjo opened this issue Mar 30, 2023 · 0 comments
Open
11 tasks done

STEP 5. 문자열 #6

letsjo opened this issue Mar 30, 2023 · 0 comments
Assignees
Labels
STEP 단계

Comments

@letsjo
Copy link
Owner

letsjo commented Mar 30, 2023

단계 설명

문자열을 다루는 문제들을 해결해 봅시다.

문제 / 코드보기

새로 알게된 점

  • 문자열 아스키코드 변환
     char(65)	#A
     char(97)	#a
     ord('A')	#65
     ord('a')	#97
  • s.split()s.split(' ') 차이는 무엇일까요?
     s = "Hello    World"
     s.split()     # ['Hello', 'World']
     s.split(' ')  # ['hello', '', '', '', 'World']

    splitsep이 지정되지 않거나 None 이면, 다른 분할 알고리즘이 적용된다. 연속된 공백 문자는 단일한 구분자로 간주하고, 문자열이 선행이나 후행 공백을 포함해도 결과는 시작과 끝에 빈 문자열을 포함하지 않습니다.
    결과적으로, 빈 문자열이나 공백만으로 구성된 문자열을 None 구분자로 나누면 [] 를 돌려줍니다.

@letsjo letsjo added the STEP 단계 label Mar 30, 2023
@letsjo letsjo self-assigned this Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
letsjo added a commit that referenced this issue Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STEP 단계
Projects
None yet
Development

No branches or pull requests

1 participant