python 建立文件夹并新建txt文件

python 建立文件夹并新建txt文件 import osdef new_txt(): b = os.getcwd() + '\\test_txt\\' print("Created directory:"+ "test_txt") print("The created TXT files:") if not os.path.exists(b): os.makedirs(b) for file
相关文章
相关标签/搜索