f1 = open("hello.txt","w") f1.write("hello,my name is bobo.") f1.close() def func(): name = input("输入名字:") content = input("输入内容:") new_content = input("输入文件新内容:") new_name = name + ".new&qu…
auther: Lart date: 2019-01-17 update: 2019-01-18 09:55:36 --- import os, glob, fnmatch 针对某些操作, 官方推荐这些操作 This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see open() if you…