Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- openpyxl
- perfect
- STF
- insert
- SWIFT
- nmap
- nohup
- ubuntu
- Jupyter
- kitura
- Jupyter Notebook
- rethinkdb
- ftp
- postgresql
- 실행권한
- port forwarding
- Materials
- mysql
- nGrinder
- GoCD
- STF_PortForwarding
- sshpass
- appium
- postgres
- centos
- ssh
- appium server
- 28015
- create table
- PYTHON
Archives
- Today
- Total
목록json (1)
don't stop believing
openpyxl을 이용해 json 파일 만들기
엑셀 파일을 json파일로 만들어 봅시다. 변경하려는 엑셀 파일은 앞서 설명한 영어단어 엑셀입니다. [openpyxl을 이용해서 sql 쿼리문 만들기] # -*- coding:utf-8 -*- import openpyxl import codecs # 엑셀파일 열기 filename = "word-list-01.xlsm" book = openpyxl.load_workbook(filename) # 엑셀 파일의 첫번째 시트 추출하기 sheet = book.worksheets[0] # json 형식에 맞게 문자 변경 def replaceToJson(text): if text == None: return "" else: text = text.replace("\n", "\\n") text = text.replace(..
Python/openpyxl
2017. 9. 25. 22:24