본문 바로가기 메뉴 바로가기

Data Makes Our Future

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Data Makes Our Future

검색하기 폼
  • 분류 전체보기 (740)
    • Data (18)
      • Statistics (10)
      • Analysis (8)
    • SQL (24)
      • Organize (3)
      • Install (2)
    • R (58)
      • Collection (4)
      • Process (33)
      • Analysis (11)
      • Visualize (4)
      • Install (3)
    • Python (56)
      • Collection (10)
      • Process (27)
      • Visualize (2)
      • Install (3)
    • Web (164)
      • API (16)
      • Spring (58)
      • JAVA (49)
      • Infra (11)
    • PS (366)
      • Algorithm (45)
      • Problem_Solving (311)
      • PS_Note (7)
    • Books (35)
    • ADsP (4)
    • eTc (15)
  • 방명록

loadtxt (1)
[Python] Numpy 텍스트파일 저장, 불러오기(savetxt, loadtxt)

# default 디렉토리 확인import osos.getcwd()'C:\\Users\\Aaron' # 해당 경로로 파일이 저장 # 텍스트 파일 저장 (savetxt)np.savetxt?np.savetxt( ['fname', 'X', "fmt='%.18e'", "delimiter=' '", "newline='\\n'", "header=''", "footer=''", "comments='# '", 'encoding=None']) # fmt = 출력 포맷, delimiter = 구분기호, header = 헤더arr = np.arange(20).reshape(4,5)array([[ 0, 1, 2, 3, 4], [ 5, 6, 7, 8, 9], [10, 11, 12, 13, 14], [15, 16, 17, 18,..

Python/Collection 2019. 2. 1. 19:30
이전 1 다음
이전 다음
최근에 올라온 글
최근에 달린 댓글
링크
  • Gitbook
  • resume
Total
Today
Yesterday
TAG
  • DFS
  • Algorithm
  • BOJ
  • BFS
  • coding
  • dp
  • C
  • 백준
  • java
  • spring
  • R
  • DATA
  • 시뮬레이션
  • c++
  • PYTHON
more

Blog is powered by Tistory / Designed by Tistory

티스토리툴바