파이썬 array fill()

Jmnote (토론 | 기여)님의 2020년 1월 30일 (목) 23:19 판 (→‎같이 보기)

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 }}