# -*- coding = utf-8 -*-
# @Time : 2020/11/5 19:21
# @Author : Bruce Yang
# @File : demo10.py
# @Software : PyCharm

# f = open("test.txt", "w", encoding="utf-8")
# f.write("hello，python，你好", )
# f.close()

# f = open("test.txt", "r", encoding="utf-8")
# # content = f.readline()
# # print(content)
# content = f.readlines()
# print(content)
# f.close()

# os.rename("test.txt", "测试.txt")


# try:
#     f = open("aaa.txt", "r")
# except Exception as result:
#     print(result)


# f = open("gushi.txt", "w", encoding="utf-8")
# f.write("""一片青天白鹭前，桃花水泛住家船。
# 呼儿去换城中酒，新得槎头缩项鯿。""")

# import os
# os.popen("copy gushi.txt gg.txt")  # 复制文件
