구름솜의 dev일기

  • 홈
  • 태그
  • 방명록
  • 글쓰기

리스트메소드 1

[Python] 05. 파이썬 문자열/리스트 관련 메소드, 함수

문자열 관련 메소드 1) 대소치환(upper(),lower(),title()) 문자열.upper() : 문자열을 대문자로 치환 문자열.lower() : 문자열을 소문자로 치환 문자열.title() : 문자열 앞글자만 대문자로 치환 a1 = 'abc de12! cAA' a1.upper() #ABC DE12! CAA a1.lower() #abc de12! caa a1.title() #Abc De12! Caa 2) 공백제거(strip(),lstrip(),rstrip()) 문자열.strip() : 문자열 양옆 공백제거 문자열.lstrip() : 문자열 왼쪽 공백제거 문자열.rstrip() : 문자열 오른쪽 공백제거 ' dfc '.strip() #dfc ' dfc '.lstrip() #dfc ' dfc '.rst..

Python/Python 2023.11.24
이전
1
다음
더보기
프로필사진

구름솜의 dev일기

구름솜:D

  • 분류 전체보기 (91)
    • Python (70)
      • Python (19)
      • Python analysis (0)
      • online judge (51)
    • SQL (0)
      • SQL (0)
      • online judge (0)
    • R (8)
      • R (8)
      • R analysis (0)
    • Algorithm (0)
    • ML|DL (0)
      • Machine Learning (0)
      • Deep Learning (0)
      • Statistics (0)
    • English (0)
      • Speaking (0)
      • Grammer (0)
    • Certificate (13)
      • sqld (0)
      • adsp (0)
      • OPic (0)
      • 정보처리기사 (13)

Tag

메소드, 함수, 문자열, 정보처리기사, 형변환, python, 브론즈2, 2차원리스트, 파이썬, 실버5, 브론즈3, 브론즈1, 브론즈5, 행렬, r, 반복문, 정렬, 리스트, 백준, baekjoon,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바