
# https://www.globalsino.com/ICs/
# 'w': Open a text file for writing text
# 'a': Open a text file for appending text
# Write a string to a simple text file

lines = ["This is ", "Yougui Liao!!!"]
with open(r"C:\0Python\Yougui_Liao.txt", 'w') as f:
    for line in lines:
        f.write(line)
        f.write('\n')
