"파이썬 array fill()"의 두 판 사이의 차이

(새 문서: ==개요== ;Python array_fill() ;파이썬 array_fill() <source lang='python'> print( [100] * 5 ) # [100, 100, 100, 100, 100] </source> <source lang='python'> print( ['cat'] * 3 ) #...)
 
15번째 줄: 15번째 줄:
# ['cat', 'cat', 'cat']
# ['cat', 'cat', 'cat']
</source>
</source>


==같이 보기==
==같이 보기==

2018년 8월 28일 (화) 00:41 판

1 개요

Python array_fill()
파이썬 array_fill()
print( [100] * 5 )
# [100, 100, 100, 100, 100]
print( ['cat'] * 3 )
# ['cat', 'cat', 'cat']
print( ["cat"] * 3 )
# ['cat', 'cat', 'cat']

2 같이 보기

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