用python实现新建一个文件并输入内容

#/usr/bin/env python #模块文档 "in order to create a file " #引入模块 import os #给出当前平台的行终止符 ls = os.linesep #判断文件是否存在+ while True: fname = input("please input the name of the file:") if os
相关文章
相关标签/搜索