【单选题】在当前目录存在文本文件test.txt,内容是: Life is short, you need Python. Simple is better than complex. 执行下列语句输出得到的结果是以下哪一项? with open('test.txt', 'r+') as fp: fp.seek(15) print(fp.readline())
【单选题】在当前目录存在文本文件test.txt,内容是:Life is short, you need Python.Simple is better than complex.执行语句fp=open('test.txt','r+')fp.seek(15)printfp.readline()输出得到的结果是以下哪一项?
【单选题】在当前目录存在文本文件 test.txt ,内容是: Life is short, you need Python. Simple is better than complex. 1. with open(‘test.txt’,’r+’) as fp; 2. fp.seek(15) 3. print(fp.readline())
【简答题】在当前目录存在存在文本文件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.Simple is better than complex.执行下列语句输出得到的结果是以下哪一项?withopen('test.txt','r+')asfp:fp.seek(15)print(fp.readline())
【单选题】在当前目录存在文本文件test.txt,内容是: Life is short, you need Python. Simple is better than complex. 执行下列语句输出得到的结果是以下哪一项? with open('test.txt', 'r+') as fp: fp.seek(15) print(fp.readline())
【简答题】在当前目录存在存在文本文件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()