[单选题]以下程序的输出结果是: fo = open(“text.txt”,‘w+’) x,y =‘this is a test’,‘hello’ fo.write(’{}+{}\n’.format(x,y)) print(fo.read(    )) fo.close(    ) A. this is a test hello B. this is a test C. this is a test,hello. D. this is a test+hello
竞赛题库
|
2023-10-27 16:23:18
|
13
[单选题]以下程序的输出结果是: fo = open(“text.txt”,‘w+’) x,y =‘this is a test’,‘hello’ fo.write(’{}+{}\n’.format(x,y)) print(fo.read(    )) fo.close(    ) A. this is a test hello B. this is a test C. this is a test,hello. D. this is a test+hello

A. this is a test hello
B. this is a test
C. this is a test,hello.
D. this is a test+hello
查看答案

西南科技大学

Python程序设计

您可能感兴趣的试题
TOP