티스토리 뷰
1 2 3 4 5 6 7 8 9 | import fileinput import sys with fileinput.FileInput( temp_file, inplace=True, backup='.bak' ) as f: for line in f: new_line.replace("test", "test2") sys.stdout.write(new_line) | cs |
'프로그래밍' 카테고리의 다른 글
Python Flask-RESTPlus로 API 서버 구축 (0) | 2020.02.20 |
---|---|
Python Mysql(Maria) DB 클라이언트 모듈 (0) | 2020.02.18 |
Django + Django REST framwork + AWX 개발 레퍼런스 (0) | 2019.03.28 |
Python 연습 문제 (0) | 2018.02.13 |
Python Restful API 클라이언트 예제 (0) | 2017.12.12 |
댓글
warpmemory
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
페이지
TAG
- RESTful
- 외부링크
- MariaDB
- deview
- 명령어
- 번역
- code
- PowerShell
- Web
- 코드
- engineering
- 예제
- Windows
- monitoring
- configuration
- example
- Module
- client
- httpd
- Ansible
- limits
- command
- File
- apache
- Python
- 이슈처리
- mysql
- Linux
- check
- error
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함