일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 자바 기본타입
- 파이썬 제어문
- 클래스 속성
- activate 오류
- 파이썬 장고
- Kotlin 조건문
- 좋은글
- 성공
- 강제 타입변환
- Kotlin 클래스
- github
- NextJs
- Variable declaration
- Python Class
- 장고 가상환경
- 파이썬 클래스
- 파이썬
- Python
- Kotlin 클래스 속성정의
- 다중조건문
- django virtualenv
- Kotlin Class
- Kotlin If
- 넥스트js
- python Django
- 파이썬 반복문
- 희망
- 도전
- Kotlin else if
- git
Archives
- Today
- Total
목록startswith (1)
키모스토리

startwith() startswith()를 이용하여 문자열이 특정 문자열로 시작하는지 확인할 수 있습니다. 1. startswith()로 문자열이 특정 문자열로 시작하는지 확인 예를 들어 다음과 같이 'Hello world, Python!'가 Hello로 시작하는지 확인할 수 있습니다. str = 'Hello world, Python!' if str.startswith('Hello'): print('It starts with Hello') if not str.startswith('Python'): print('It does not start with Python') Output: It starts with Hello It does not start with Python 만약 대소문자를 구분하지 않고 ..
Python/Python
2022. 12. 15. 12:11