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

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
2번째 줄: 2번째 줄:
;NumPy around()
;NumPy around()


<source lang='python' run>
<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 )
</source>
</syntaxhighlight>


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

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