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

A22208. 执⾏以下Python代码后,输出的结果是?( )with open('test.txt', 'w') as f: f.write('Hello') with open('test.txt', 'a') as f: f.write('World') with open('test.txt','n') as f: print(f.read())

单选题 较难

题目描述

执⾏以下Python代码后,输出的结果是?(    )

with open('test.txt', 'w') as f:
    f.write('Hello')

with open('test.txt', 'a') as f:
    f.write('World')

with open('test.txt','n') as f:
    print(f.read())

选项(单选)

上一题 下一题