"함수 ucwords()"의 두 판 사이의 차이

16번째 줄: 16번째 줄:
{{참고|Python title()}}
{{참고|Python title()}}
<source lang='Python'>
<source lang='Python'>
s = 'hello, world!'
print( 'hello, world!'.title() )
print( s.title() )
# Hello, World!
# Hello, World!
</source>
<source lang='Python'>
print( 'FooBar'.title() )
print( 'FooBar'.title() )
# Foobar
# Foobar

2020년 1월 23일 (목) 11:44 판

title()
ucwords()

1 PHP

$s = 'hello, world!';
echo ucwords($s);
# Hello, World!

2 Python

print( 'hello, world!'.title() )
# Hello, World!
print( 'FooBar'.title() )
# Foobar

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}