Sangjun 개발 블로그
    • 태그
    • algorithm
    • apple
    • aws
    • boto3
    • cron
    • crontab
    • db
    • django
    • docker
    • facebook
    • fcm
    • go
    • google
    • gopacket
    • gui
    • kakao
    • learning
    • leetcode
    • library
    • linux
    • logging
    • mariadb
    • models
    • mssql
    • naver
    • nfs
    • numpy
    • oauth
    • opencv
    • postgredb
    • pytest
    • python
    • sniff
    • sql
    • swagger
    • windows
    • windows10
    • wsl
    Hero Image
    python numpy 사용법

    선형대수 기반의 python 라이브러리 루프없이 배열 연산이 가능하여 연산속도가 빠름 설치버전 : numpy 1.20.2 라이브러리 import import numpy as np 1. 생성 arange np.arange([start,] stop, [step,] dtype) 지정한 숫자 범위의 array 생성함수 np.arange(10) # [0 1 2 3 4 5 6 7 8 9] np.arange(0, 5, 0.5) # [0. 0.5 1. 1.5 2. 2.5 3. 3.5 4. 4.5] zeros np.zeros(shape, dtype) 0으로 선언된 array 생성 np.zeros((2,4)) # [[0. 0. 0.

    May 21, 2021 Read
    바로가기
    • About
    • Recent Posts
    Contact me:
    • sangjuncha.dev@gmail.com

    Toha Theme Logo Toha
    Copyright 2020. SangjunCha all rights reserved.
    Powered by Hugo Logo