일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 김성엽 대표님
- htmlspecialchars
- 객체
- IF문
- python
- 배열
- element 조회
- xss game
- Pwndbg
- suninatas 풀이
- jQuery
- 자바스크립트
- 메소드
- xss game 풀이
- property
- sql injection
- burp suite
- 백준 파이썬
- 함수
- 사칙연산
- blind sql injection
- 조건문
- 백준 알고리즘
- lord of sql injection
- document
- 포인터
- 파이썬
- object
- window
- github
Archives
- Today
- Total
목록numpy 변환 (1)
power-girl0-0
[ Numpy ] 변환
reshape 가 배열의 순서를 유지하는 상태에서 배열의 형태만 유지한다면, 아예 새로운 배열로 변환하는 방법이 있다. 0. 환경설정 먼저, 활용을 위해서 세팅을 아래와 같이 해주자. import numpy as np import matplotlib.pyplot as plt 1. append np.append 는 두개의 1차원 배열을 합칠 수 있다. np.append( 배열1, 배열2 ) 다차원 배열의 경우 append 는 이를 모두 1차원 배열로 변형하여 합친다. narr1 = np.array([1,2,3]) narr2 = np.array([4,5]) print( np.append(narr1, narr2) ) narr1 = np.array([[1,2],[3,4]]) narr2 = np.array([[5..
언어/Python
2021. 3. 29. 15:28