# 先创建.txt文件所在的文件夹
if not os.path.exists(txt_path):
os.makedirs(txt_path)
# 创建test.txt文件
fp = open("test.txt", "w")
# 先创建.txt文件所在的文件夹
if not os.path.exists(txt_path):
os.makedirs(txt_path)
# 创建test.txt文件
fp = open("test.txt", "w")