[Python] swapcase ν•¨μˆ˜

MariGoldΒ·2023λ…„ 9μ›” 17일
0

Python

λͺ©λ‘ 보기
7/11
post-thumbnail

πŸ’‘swapcase ν•¨μˆ˜πŸ’‘

객체의 λŒ€μ†Œλ¬Έμžλ₯Ό λ³€ν™˜ν•œλ‹€.

πŸ’‘μ˜ˆμ‹œ μ½”λ“œπŸ’‘

a = 'Hello World'
a.swapcase()

>>> print(a)
hELLO wORLD
profile
μ‘°κΈˆμ”© μ•žμœΌλ‘œ λ‚˜μ•„κ°€λŠ” μ‹ μž… 개발자 :)

0개의 λŒ“κΈ€