运行下面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!
Hello World!
This is my first Python program.
Hello World!
This is my first Python program.
Hello World!This is my first Python program.