"Keyword Arguments"의 두 판 사이의 차이

(새 문서: ;keyword arguments ==Python== category: Python <source lang='Python'> def showUrl( host, port ): print( 'http://' + host + ':' + str(port) ) showUrl( 'google.com', 80 ) show...)
 
잔글 (Jmnote 사용자가 Keyword arguments 문서를 Keyword Arguments 문서로 옮겼습니다)
(차이 없음)

2014년 8월 21일 (목) 11:37 판

keyword arguments

1 Python

def showUrl( host, port ):
    print( 'http://' + host + ':' + str(port) )

showUrl( 'google.com', 80 )
showUrl( port=80, host='google.com' )
# http://google.com:80
# http://google.com:80

2 같이 보기

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