测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A59931. 执行下面Python代码后,文件ip.txt中的内容用记事本打开时显示为?( )1 with open("ip.txt", "w") as f

单选题

题目描述

执行下面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)

选项(单选)