Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- html
- Pipelining
- Linux
- Class
- mysql
- instruction
- CSS
- DB
- system
- DS
- for
- MIPS
- web
- react
- XML
- javascript
- DoM
- php
- computer
- github
- data structure
- DATAPATH
- while
- Algorithm
- control
- architecture
- function
- MacOS
- python
- Java
Archives
- Today
- Total
목록endsWith (1)
YYYEJI
[Python] find, startswith, endswith 함수
find - 특정 문자의 Index를 반환해 줍니다. startswith - parameter로 받은 문자가 시작문자열이면 True 아니면 False를 반환해 줍니다. endswith - parameter로 받은 문자가 끝나는 문자열이면 True 아니면 False를 반환해 줍니다. Find 함수 abc = "ABCDEFG" print(abc.find("A")) print(abc.find("D")) print(abc.find("G")) Startswith 함수 abc = ["Aa", "Bb", "Cc", "Dd"] for alpha in abc: print(alpha.startswith("B")) abc = ["Aa", "Bb", "Cc", "Dd"] for alpha in abc: if alpha.st..
Python
2022. 9. 26. 17:16