# 문자열이 특정 단어로 끝나는 것 찾기
str.endswith("txt")
# 특정 단어가 튜플이나 리스트로 있음
endTuple = ('A",'B')
endList = ['A','B']
str.endswith(endTuple)
파이썬 string 특정 단어로 끝나는지 확인
2023. 11. 26. 10:30
# 문자열이 특정 단어로 끝나는 것 찾기
str.endswith("txt")
# 특정 단어가 튜플이나 리스트로 있음
endTuple = ('A",'B')
endList = ['A','B']
str.endswith(endTuple)