单选题

文本文件'a.txt'为空文件,执行以下Python后,'a.txt'文件中的内容是?( )

n=1

f=open('a.txt','a')

while n<=6:

      f.write(str(n))

      n+=1

f.close()

A

123456

B

6

C

D

1

赣ICP备20007335号-2