如下: # 打开一个文件 # fo = open("D://temp//t1.txt", "r") #T # fo = open("D:/temp/t1.txt", "w") #T # fo = open("D:/temp/t1.txt", "r"……