• 2022-05-29
    如果想从文件D:\test.txt读取或再写入一些数据,正确的打开文件的语句是()。
    A: fp = open("D:\\test.txt", "r+")
    B: fp = open("D:\\test.txt", "w+")
    C: fp = open("D:\\test.txt", "x+")
    D: fp = open("D:\\test.txt", "rw")