Sangjun 개발 블로그
    • 카테고리
    • Algorithm
    • Apple
    • AWS
    • Boto3
    • Cron
    • Crontab
    • Db
    • Django
    • Docker
    • Facebook
    • Fcm
    • Go
    • Google
    • Gopacket
    • Gui
    • Guide
    • Kakao
    • Learning
    • LeetCode
    • Linux
    • Logging
    • MariaDB
    • Models
    • MSSQL
    • Naver
    • NFS
    • Numpy
    • Oauth
    • Opencv
    • PostgreDB
    • Pytest
    • Python
    • Sniff
    • 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
    바로가기
    • About
    • Recent Posts
    Contact me:
    • sangjuncha.dev@gmail.com

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