执行以下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', 'r') 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', 'r') as f: print(f.read())