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