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

19번째 줄: 19번째 줄:
print( s.title() )
print( s.title() )
# Hello, World!
# Hello, World!
print( 'FooBar'.title() )
# Foobar
</source>
</source>



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

title()
ucwords()

1 PHP

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

2 Python

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

3 같이 보기

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