"NumPy around()"의 두 판 사이의 차이

(새 문서: ==개요== ;NumPy around() <source lang='python'> import numpy as np a = np.array([1.2, 1.5, 1.6, 2.5, 3.5, 4.5]) b = np.around(a) print( b ) # [ 1. 2. 2. 2. 4. 4.] </source>...)
 
잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
(다른 사용자 한 명의 중간 판 하나는 보이지 않습니다)
2번째 줄: 2번째 줄:
;NumPy around()
;NumPy around()


<source lang='python'>
<syntaxhighlight lang='python' run>
import numpy as np
import numpy as np


8번째 줄: 8번째 줄:
b = np.around(a)
b = np.around(a)
print( b )
print( b )
# [ 1.  2.  2.  2.  4.  4.]
</syntaxhighlight>
</source>


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

2021년 2월 19일 (금) 21:00 기준 최신판

1 개요[ | ]

NumPy around()
import numpy as np

a = np.array([1.2, 1.5, 1.6, 2.5, 3.5, 4.5])
b = np.around(a)
print( b )

2 같이 보기[ | ]

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