使用open()打开一个windows操作系统D盘下的文件,以下选项中对路径的表示是错误的是:
A: “D:\test\abc.txt”
B: r“D:est”
C: “D:/test/abc.txt”
D: “D:\test\”
A: “D:\test\abc.txt”
B: r“D:est”
C: “D:/test/abc.txt”
D: “D:\test\”
举一反三
- 使用open()打开一个Windows操作系统D盘下的文件,以下选项中对路径的表示错误的是
- 使用open()打开一个Windows操作系统D盘下的文件,以下选项中对路径的表示错误的是()
- 以只读模式打开文件"abc.txt"的正确方法是( ) A: fopen("abc.txt","r+"); B: open("abc.txt"); C: open("abc.txt","read"); D: fopen("abc.txt","r");
- 使用open( )打开一个Windows操作系统D盘下的文件,以下选项中对路径的表示错误的是( )。 A: D:\PythonTest\ B: D:\\PythonTest\\ C: D: D: D:/PythonTest
- 当前程序路径在C:\ test目录中,使用open()打开C盘根目录下文件,以下选项中对路径的表示错误的是( ) A: /a.txt B: C:\\a.txt C: ../a.txt D: \a.txt