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

A60481. 在Python中,以下代码的执行结果是?( )with open('test.txt', 'w+') as f

单选题

题目描述

Python中,以下代码的执行结果是?( )

with open('test.txt', 'w+') as f:
    f.write('HelloWorld')
    f.seek(5)
    print(f.read(2))

选项(单选)