以下程序的输出结果是:
Fo=open(“text.txt”,‘w+’)
X,y=‘this is a test’,‘hello’
Fo.write(’{}+{}\n’.format(x,y))
Print(fo.read())
Fo.close()(5.0分)
A.this is a test,hello. B.this is a test C.this is a test+hello D.this is a test hello正确答案C
以下程序的输出结果是:
Fo=open(“text.txt”,‘w+’)
X,y=‘this is a test’,‘hello’
Fo.write(’{}+{}\n’.format(x,y))
Print(fo.read())
Fo.close()(5.0分)
A.this is a test,hello. B.this is a test C.this is a test+hello D.this is a test hello正确答案C