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

A59840. 运行下面Python代码的正确结果是?( )with open("myfile.txt", "w") as out_file

单选题

题目描述

运行下面Python代码的正确结果是?( )

with open("myfile.txt", "w") as out_file:
    out_file.write("This is my first Python program.")
with open("myfile.txt", "r") as in_file:
    myfile = in_file.read()
print(myfile)


其中myfile.txt文件内容如下:

          Hello World!

选项(单选)