Python:写入和光标的相关功能
摘要:
# write 写 file_01 = open('222.txt',mode='a',encoding='utf-8') file_01.write('\n四小天王') # 如不加\n会直接写在已有内容最后,如加\n则会换行写 file_01.flush() # 内容是写到缓冲区,加flush,则 阅读全文
posted @ 2021-10-04 23:41 小尹学python 阅读(201) 评论(0) 推荐(0)
浙公网安备 33010602011771号