单选题

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

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!

A

Hello World!

B

This is my first Python program.

C

Hello World!

This is my first Python program.

D

Hello World!This is my first Python program.

赣ICP备20007335号-2