题库首页 › 青少年软件编程(Python) › 题目 12568

以下语句的执行结果是?( ) with open('A.txt','w+') as f: f.write('hello') print(f.read())

A:输出一个'hello'字符串
B:写到文件
A.txt里一个'hello'字符串
C:写到文件
A.txt里一个'hello'字符串并输出一个'hello'字符串
D:打印'hello'

正确答案:B

试卷来源:202409 青少年软件编程等级考试Python六级真题

本卷相关题目

在线做题 同科目题库