• 2022-06-03 问题

    有一非空文件textfile.txt,执行下述代码:fi=open("textfile1.txt","rb")for line in fi.readlines():line=line.strip()fi.close()for line in fi.readlines():print(line)输出结果为 A: 报错 B: 逐行输出文件内容 C: 文件被清空,所以没有输出内容 D: 文件没有打开

    有一非空文件textfile.txt,执行下述代码:fi=open("textfile1.txt","rb")for line in fi.readlines():line=line.strip()fi.close()for line in fi.readlines():print(line)输出结果为 A: 报错 B: 逐行输出文件内容 C: 文件被清空,所以没有输出内容 D: 文件没有打开

  • 2022-07-26 问题

    把金属条弯曲成一条曲线。 A: Bend the strip of metal to make a curve. B: Curve the strip of metal.

    把金属条弯曲成一条曲线。 A: Bend the strip of metal to make a curve. B: Curve the strip of metal.

  • 2022-05-30 问题

    num.一pron.一个人 A: ready / ‘redi/ B: one / wΛn/ C: protective / prə’tektiv/ D: strip / strip/

    num.一pron.一个人 A: ready / ‘redi/ B: one / wΛn/ C: protective / prə’tektiv/ D: strip / strip/

  • 2021-04-14 问题

    字符串函数strip()的作用是什么?

    字符串函数strip()的作用是什么?

  • 2022-06-16 问题

    分割字符串可以使用strip()方法。

    分割字符串可以使用strip()方法。

  • 2022-06-16 问题

    strip可以去掉字符串的空格。

    strip可以去掉字符串的空格。

  • 2021-04-14 问题

    表达式 'aaasdf'.strip('af') 的值为______________

    表达式 'aaasdf'.strip('af') 的值为______________

  • 2021-04-14 问题

    字符串的strip 方法的作用是 ()

    字符串的strip 方法的作用是 ()

  • 2021-04-14 问题

    ___ shows Line 3; ___ shows Line 2; ____ shows Line 1.

    ___ shows Line 3; ___ shows Line 2; ____ shows Line 1.

  • 2022-06-05 问题

    Write the word ______. A: on line one B: on one line C: in one line

    Write the word ______. A: on line one B: on one line C: in one line

  • 1 2 3 4 5 6 7 8 9 10