题库 Python题库 题目列表 执行下面Python代码后,文件ip.txt中的内容用记事本打...
单选题

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

1 with open("ip.txt", "w") as f:
2  lst = ["202.206.224.21\n", "192.168.224.1\n"]
3  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
题目信息
2024年 6月 选择题
0%
正确率
0
评论
53
点击