已知字符串s='I am Tommy',则以下哪个字符串的方法能从s中提取所有单词 ()
A. split
B. insert
C. join
D. index
以下程序的输出结果是:()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+hello
C. this is a test
D. this is a test,hello.
下列操作能够创建文件对象的是()
A. make()
B. create()
C. open()
D. file()
关于语句f = open("a.txt", "w+"),下列说法正确的是()
A. 只能写入数据
B. 只能读取数据
C. 文件可以不存在
D. 文件必须已经存在