본문 바로가기 메뉴 바로가기

Data Makes Our Future

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Data Makes Our Future

검색하기 폼
  • 분류 전체보기 (740)
    • Data (18)
      • Statistics (10)
      • Analysis (8)
    • SQL (24)
      • Organize (3)
      • Install (2)
    • R (58)
      • Collection (4)
      • Process (33)
      • Analysis (11)
      • Visualize (4)
      • Install (3)
    • Python (56)
      • Collection (10)
      • Process (27)
      • Visualize (2)
      • Install (3)
    • Web (164)
      • API (16)
      • Spring (58)
      • JAVA (49)
      • Infra (11)
    • PS (366)
      • Algorithm (45)
      • Problem_Solving (311)
      • PS_Note (7)
    • Books (35)
    • ADsP (4)
    • eTc (15)
  • 방명록

split (1)
[Python] 문자열 메서드(method)

Python은 벡터 연산이 불가능합니다. AttributeError: 'list' object has no attribute 'methodName' 이러한 오류가 출력되는 것은, 벡터 연산이 불가능한 메서드(method)에 리스트를 적용했기 때문이죠.이를 해결하기 위해서는 "사용자 정의 함수 + 적용 함수" 의 조합이 필요합니다. # test 변수 준비>>> im = 'im tired' #. startswith() : 문자열의 시작 문자 패턴 확인 (T or F return)>>> im 'im tired'>>> im.startswith('im')True #. endswith() : 문자열의 종료 문자 패턴 확인 (T or F return)>>> im 'im tired'>>> im.endswith('ed'..

Python/Process 2019. 1. 23. 16:23
이전 1 다음
이전 다음
최근에 올라온 글
최근에 달린 댓글
링크
  • Gitbook
  • resume
Total
Today
Yesterday
TAG
  • java
  • R
  • dp
  • 시뮬레이션
  • coding
  • BFS
  • Algorithm
  • c++
  • PYTHON
  • C
  • BOJ
  • DFS
  • DATA
  • 백준
  • spring
more

Blog is powered by Tistory / Designed by Tistory

티스토리툴바