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
- WF
- win to go
- numpy
- 설치
- ImageX
- 행열크기
- cell 너비
- GPT
- Download
- UEFI
- 가로 크기
- jupyternotebook
- 전체출력
- 파티션 복구
- ISO
- NP
- Dism
- mbr
- LPD
- EPSON
- 드라이버
- win to usb
- 5690
- driver
- ubuntu
- 윈투고
Archives
- Today
- Total
conductor
[python] file write 본문
여러가지
You can do this in two ways:
f.write("text to write\n")
// file.write(your_string + '\n')
or, depending on your Python version (2 or 3):
print >>f, "text to write" # Python 2.x
print("text to write", file=f) # Python 3.x
https://stackoverflow.com/questions/2918362/writing-string-to-a-file-on-a-new-line-every-time