【单选题】在当前目录存在文本文件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.执行如下语句,结果字符串是b'_________________'。fp=open('test.txt','rb+',0)fp.readline()fp.seek(10,1)print(fp.readline())fp.clo...
【简答题】在当前目录存在存在文本文件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. 执行下列语句输出得到的结果是以下哪一项? 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()