본문 바로가기

python

file write

f = open("demofile2.txt", "a")
f.write("Now the file has more content!")
f.close()

'python' 카테고리의 다른 글

main() 함수 추가하기  (0) 2022.03.24
현재 시간 표시하기  (0) 2022.03.24
전역변수  (0) 2022.03.24
python-kafka consumer  (0) 2022.03.23
문자열 구분자로 나누자 by split()  (0) 2022.03.22