#!/usr/bin/python3.8

# ļ
helloFile = open("d:/hello.txt", "w")
helloFile.write(First line.\nsecond line.\n)
helloFile.close()

helloFile = open("d:/hello.txt", "a")
helloFile.write(Third line.)
helloFile.close()

helloFile = open("d:/hello.txt")
fileContent=helloFile.read()
helloFile.close()
print(fileContent)
ϳнΪ
First line.
Second line.
Third line.