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

A25051. 运行下面代码的正确结果是?( )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.tx…

单选题 困难

题目描述

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

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!

选项(单选)

上一题 下一题