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 |
Tags
- Class
- DoM
- DS
- while
- CSS
- MacOS
- DATAPATH
- github
- php
- system
- Linux
- XML
- DB
- instruction
- architecture
- computer
- Java
- javascript
- Algorithm
- data structure
- for
- Pipelining
- MIPS
- control
- function
- html
- python
- mysql
- react
- web
Archives
- Today
- Total
YYYEJI
[Python] 문자열 체크하는 함수 (isalpha, isdigit) 본문
728x90
isalpha 함수는
문자열이 문자인지를 판별해주고
isdigit 함수는
문자열이 숫자인지 판별해주는 함수입니다.
이 두 함수의 return 값은 True, False 입니다.
string = "A"
print(string.isalpha())
◡̈
'Python' 카테고리의 다른 글
[Python] for-each문이란? (0) | 2022.09.24 |
---|---|
[Python] 문자열 대소문자 변환하기 (0) | 2022.09.24 |
[Python] 문자열을 합치고 나누는 함수 (split, join) (0) | 2022.09.24 |
[Python] In, not in 포함 연산자 (0) | 2022.09.24 |
[Python] 문자열 인덱싱 및 슬라이싱 (0) | 2022.09.24 |