반응형
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
- math
- google apps script
- Apache
- array
- numpy
- hive
- Excel
- Google Spreadsheet
- list
- PostgreSQL
- gas
- matplotlib
- Tkinter
- Mac
- django
- Google Excel
- PySpark
- Java
- PANDAS
- SQL
- Github
- 파이썬
- Redshift
- dataframe
- Kotlin
- string
- Python
- GIT
- c#
Archives
- Today
- Total
목록uppser (2)
달나라 노트
Python Basic : islower(), isupper() (string에 포함된 알파벳의 대소문자 여부 체크하기)
islower() method는 string에 적용할 수 있으며, 문자열에 포함된 모든 알파벳이 모두 소문자일 경우 True를 return합니다. 문자열에 포함된 알파벳 중 하나라도 대문자일 경우 False를 return합니다. isupper() method는 string에 적용할 수 있으며, 문자열에 포함된 모든 알파벳이 모두 대문자일 경우 True를 return합니다. 문자열에 포함된 알파벳 중 하나라도 소문자일 경우 False를 return합니다. Syntax string.islower() string.isupper() 사용법은 간단합니다. 두 method 모두 그냥 string에 적용하면 됩니다. str_test = 'abcde' print(str_test.islower()) -- Result T..
Python/Python Basic
2022. 10. 24. 00:23
Python Basic : lower, upper (소문자로 변경하기, 대문자로 변경하기)
print('AbCdEfG'.lower()) print('AbCdEfG'.upper()) -- Result abcdefg ABCDEFG lower method는 텍스트에 적용하여 모든 알파벳을 소문자로 변경시킵니다. upper method는 텍스트에 적용하여 모든 알파벳을 대문자로 변경시킵니다. print('Ab1C2d3EfG'.lower()) print('Ab4Cd5Ef6G'.upper()) -- Result ab1c2d3efg AB4CD5EF6G 중간에 숫자가 있어도 숫자는 무시하고 알파벳만 대문자 또는 소문자로 바꿔줍니다.
Python/Python Basic
2021. 3. 27. 01:34