【单选题】在当前目录存在文本文件test.txt,内容是: Life is short, you need Python. is better than complex. 执行下列语句输出得到的结果是以下哪一项? with open('test.txt', 'r+') as fp: fp.seek(15) print(fp.readline())
A.
is better than complex
D.
Life is short, you need Python.
【简答题】氨是一种很好的制冷剂,家用电器中的制冷剂不选择氨的原因是()
【单选题】在当前目录存在文本文件test.txt,内容是:Life is short, you need Python. is better than complex.执行语句fp=open('test.txt','r+')fp.seek(15)printfp.readline()输出得到的结果是以下哪一项?
A.
Life is short, you need Python.
C.
is better than complex.
【单选题】在当前目录存在文本文件 test.txt ,内容是: Life is short, you need Python. is better than complex. 1. with open(‘test.txt’,’r+’) as fp; 2. fp.seek(15) 3. print(fp.readline())
B.
Life is short,you need Python
D.
is better than complex
【简答题】在当前目录存在存在文本文件test.txt,内容是:Life is short, you need Python. is better than complex.执行如下语句:fp=open('test.txt','r+',0)fp.readline()fp.seek(10,1)print(fp.readline())
【单选题】在当前目录存在文本文件test.txt,内容是:Life is short, you need Python. is better than complex.执行下列语句输出得到的结果是以下哪一项?withopen('test.txt','r+')asfp:fp.seek(15)print(fp.readline())
A.
Life is short, you need Python.
C.
is better than complex.
【单选题】在当前目录存在文本文件test.txt,内容是: Life is short, you need Python. is better than complex. 执行下列语句输出得到的结果是以下哪一项? with open('test.txt', 'r+') as fp: fp.seek(15) print(fp.readline())
B.
Life is short, you need Python.
D.
is better than complex.
【简答题】在当前目录存在存在文本文件test.txt,内容是:Life is short, you need Python. is better than complex.执行如下语句:fp=open('test.txt','rb+',0)fp.readline()fp.seek(10,1)print(fp.readline())fp.close()