单选题

执行下面Python代码后,⽂件ip.txt中的内容用记事本打开时显示为?( )

with open("ip.txt", "w") as f:

     lst = ["202.206.224.21\n", "192.168.224.1\n"]

     f.writelines(lst)

A

202.206.224.21192.168.224.1

B

202.206.224.21

192.168.224.1

C

202.206.224.21\n192.168.224.1

D

202.206.224.21\n192.168.224.1\n

赣ICP备20007335号-2