题目内容

( )字符在字符串输出时能起到换行的作用。

A. '\t'
B. '\a'
C. '\0'
D. '\n'

查看答案
更多问题

已知字符串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. 文件必须已经存在

答案查题题库