• 2022-05-30 问题

    以写方式打开myfile.txt文本文件,正确的选项是()。 A: fopen("myfile.txt","r"); B: fopen("myfile.txt","w"); C: fopen("myfile.txt","rb"); D: fopen("myfile.txt","wb");

    以写方式打开myfile.txt文本文件,正确的选项是()。 A: fopen("myfile.txt","r"); B: fopen("myfile.txt","w"); C: fopen("myfile.txt","rb"); D: fopen("myfile.txt","wb");

  • 2022-06-06 问题

    如果要对E盘myfile目录下的文本文件abc.txt进行读操作,文件打开方式应为_______________。 A: open("e:\myfile\abc.txt", "r" ) B: open("e:\myfile\abc.txt", "x" ) C: open( "e:\myfile\abc.txt", "rb" ) D: open("e:\myfile\abc.txt", "r+" )

    如果要对E盘myfile目录下的文本文件abc.txt进行读操作,文件打开方式应为_______________。 A: open("e:\myfile\abc.txt", "r" ) B: open("e:\myfile\abc.txt", "x" ) C: open( "e:\myfile\abc.txt", "rb" ) D: open("e:\myfile\abc.txt", "r+" )

  • 2022-06-06 问题

    如果要对E盘myfile目录下的文本文件abc.txt进行读操作,文件打开方式应为( )。 A: open("e:\\myfile\\abc.txt", "r+" ) B: open( "e:\\myfile\\abtxt", "rb" ) C: open("e:\\myfile\\abc.txt", "r" ) D: open("e:\\myfile\\abc.txt", "x" )

    如果要对E盘myfile目录下的文本文件abc.txt进行读操作,文件打开方式应为( )。 A: open("e:\\myfile\\abc.txt", "r+" ) B: open( "e:\\myfile\\abtxt", "rb" ) C: open("e:\\myfile\\abc.txt", "r" ) D: open("e:\\myfile\\abc.txt", "x" )

  • 2022-06-06 问题

    若磁盘上己存在某个文本文件,其全路径文件名为d:myfile est.txt,下列语句中不能打开该文件的是______。 A: ifstream file("d:myfile est.txt"); B: ifstream file("d:\myfile\test.txt"); C: ifstream file;file.open("d:\myfile\test.txt"); D: ifstream *pFile=new ifstream("d:\myfile\test.txt");

    若磁盘上己存在某个文本文件,其全路径文件名为d:myfile est.txt,下列语句中不能打开该文件的是______。 A: ifstream file("d:myfile est.txt"); B: ifstream file("d:\myfile\test.txt"); C: ifstream file;file.open("d:\myfile\test.txt"); D: ifstream *pFile=new ifstream("d:\myfile\test.txt");

  • 2022-06-08 问题

    txt = open(""book.txt"", ""r"") print(txt)txt.close()" "文件 book.txt 在当前程序所在目录内,其内容是一段文本:book,上述代码的输出结果是( ) A: txt B: book C: 其余答案都不对 D: book.txt

    txt = open(""book.txt"", ""r"") print(txt)txt.close()" "文件 book.txt 在当前程序所在目录内,其内容是一段文本:book,上述代码的输出结果是( ) A: txt B: book C: 其余答案都不对 D: book.txt

  • 2022-05-28 问题

    下列方法中,能正确创建 JavaScript 对象的是( )。 A: var txt = new Object[name:"George",price:25] B: var txt = new Object(name:"George",price:25) C: var txt = new Object{name:"George",price:25} D: var txt = new Object({name:"George",price:25})

    下列方法中,能正确创建 JavaScript 对象的是( )。 A: var txt = new Object[name:"George",price:25] B: var txt = new Object(name:"George",price:25) C: var txt = new Object{name:"George",price:25} D: var txt = new Object({name:"George",price:25})

  • 2022-05-27 问题

    如果要列出当前目录以及子目录下所有扩展名为 .txt的文件,可以使用命令( )。 A: find . –name ".txt" B: ls -d .txt C: . ls *.txt D: find .".txt"

    如果要列出当前目录以及子目录下所有扩展名为 .txt的文件,可以使用命令( )。 A: find . –name ".txt" B: ls -d .txt C: . ls *.txt D: find .".txt"

  • 2022-06-08 问题

    文件test.txt在当前程序所在目录中,文本内容为123,代码如下: txt=open("test.txt","r")print(txt)txt.close()输出结果是( )。 A: 123 B: ['123'] C: 出错 D: txt

    文件test.txt在当前程序所在目录中,文本内容为123,代码如下: txt=open("test.txt","r")print(txt)txt.close()输出结果是( )。 A: 123 B: ['123'] C: 出错 D: txt

  • 2022-05-30 问题

    要求打开文件f:\myfile。dat,并能够写入数据,正确的语句是( )。 A: ofstream outfile("f:\\myfile.dat ", ios::in); B: ifstream infile("f:\\myfile.dat", ios::in); C: fstream infile("f:\\myfile.dat ", ios::in | ios::out); D: ifstream infile("f:\\myfile.dat ", ios::out);

    要求打开文件f:\myfile。dat,并能够写入数据,正确的语句是( )。 A: ofstream outfile("f:\\myfile.dat ", ios::in); B: ifstream infile("f:\\myfile.dat", ios::in); C: fstream infile("f:\\myfile.dat ", ios::in | ios::out); D: ifstream infile("f:\\myfile.dat ", ios::out);

  • 2022-06-08 问题

    文件 book.txt 在当前程序所在目录内,其内容是一段文本:'book',下面代码输出结果是‬( )。txt = open("book.txt", "r") print(txt) txt.close() A: book B: book.txt C: 无正确选项 D: txt

    文件 book.txt 在当前程序所在目录内,其内容是一段文本:'book',下面代码输出结果是‬( )。txt = open("book.txt", "r") print(txt) txt.close() A: book B: book.txt C: 无正确选项 D: txt

  • 1 2 3 4 5 6 7 8 9 10