摘要:
将字符串 “1111” 追加写入 a.txt 文件,并换行。 with open("a.txt", mode='a') as f: f.write("1111") f.write("\n") 注意:mode中"a"是追加模式,"r"是只读模式,默认“w”是重写模式 with open中的参数newl 阅读全文
posted @ 2022-06-07 11:37
时光如你般美好
阅读(3900)
评论(0)
推荐(0)

浙公网安备 33010602011771号