본문 바로가기

IT 세계의 후아

검색하기
IT 세계의 후아
프로필사진 후__아

  • 전체 (55)
    • Coding (43)
      • Python (27)
      • Study (15)
      • Algorithm (1)
    • Recording (12)
      • NewsScrap (10)
      • 취준기록 (0)
      • Etc (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   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
Tags
  • 생성형AI
  • 파이썬
  • listcomprehension
  • OpenAI
  • 프로그래머스
  • 랭체인
  • 백준
  • 문자열
  • Python
  • llm
  • 데이콘경진대회
  • 이중리스트
  • dict
  • 리스트
  • langchain
  • chr
  • 경제신문스크랩
  • Ord
  • rag
  • AI
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록endswith (1)

IT 세계의 후아

[python]문자열 find, startswith, endswith

※ str.endswith(값, start, end) str의 start, end 위치 내에서 '값'으로 해당 문자열이 끝나는지 확인 # 프로그래머스 접미사 확인 def solution(my_string, is_suffix): return 1 if f in [s[i:] for i in range(len(s))] else 0 # 다른 사람 풀이 return int(my_string.endswith(is_suffix))

Coding/Python 2024. 4. 21. 12:06
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바