题库 Python等级考试 题目列表 运行下面代码的正确结果是?( )with open(&quo...
单选题

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

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.

题目信息
2024年 单选题 六级 容易
50%
正确率
0
评论
73
点击
QQ
公众号
客服
扫一扫