有一非空文件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: 文件没有打开
把金属条弯曲成一条曲线。 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.
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/
字符串函数strip()的作用是什么?
字符串函数strip()的作用是什么?
分割字符串可以使用strip()方法。
分割字符串可以使用strip()方法。
strip可以去掉字符串的空格。
strip可以去掉字符串的空格。
表达式 'aaasdf'.strip('af') 的值为______________
表达式 'aaasdf'.strip('af') 的值为______________
字符串的strip 方法的作用是 ()
字符串的strip 方法的作用是 ()
___ shows Line 3; ___ shows Line 2; ____ shows Line 1.
___ shows Line 3; ___ shows Line 2; ____ shows Line 1.
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