파이썬 소스코드: 문자열 함수들(String Functions)
str="Python is Good" print(str) print(str.upper()) print(str.lower()) print(str.count('P')) print(str.find('t')) print(str.index('t')) ch="," print(ch.join(str)) print(str.strip()) print(str.split()) print(str.replace(str,"Other"))Python is Good PYTHON IS GOOD python is good 1 2 2 P,y,t,h,o,n, ,i,s, ,G,o,o,d Python is Good ['Python', 'is', 'Good'] Other2016/09/29 - [파이썬] - 파이썬 소스코드: 문자열 서식 설정(St..
2016. 10. 3.