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 | 31 |
Tags
- GIT
- urllib
- 라즈베리파이
- 리눅스
- 날짜
- Excel
- PyQt5
- javascript
- PyQt
- 유니티
- Linux
- 다이어트
- port
- flutter
- 맛집
- sqlite
- Unity
- swift
- tensorflow
- IOS
- pandas
- 함수
- node.js
- ASP
- MySQL
- mssql
- ubuntu
- python
- PER
- MS-SQL
Archives
아미(아름다운미소)
python 엑셀(excel) 다루기 본문
A1 셀에 값 입력하기
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # -*- coding: utf-8 -*- ''' Created on 2018. 9. 6. @author: bhm ''' import win32com.client excel = win32com.client.Dispatch( "Excel.Application" ) excel.Visible = True wb = excel.Workbooks.Add() ws = wb.Worksheets( "Sheet1" ) ws.Cells( 1 , 1 ).Value = "hello python" wb.SaveAs( 'C:\\Users\\bhm\\Desktop\\test.xlsx' ) excel.Quit() |
'랭귀지 > python' 카테고리의 다른 글
python 엑셀(excel) 파일 읽기 (0) | 2018.09.11 |
---|---|
python excel 셀에 컬러 입히기 (0) | 2018.09.10 |
Python directory search and counting by specific extensions (0) | 2018.09.08 |
Python에서 확장자가 .wav .mp3 인 디렉토리의 모든 파일 찾기 (0) | 2018.09.07 |
Python 유용한 os 관련 함수 (0) | 2018.09.06 |