怎么用python代码实现下面java代码的效果
f=open(file='D:/Users/tufengchao/Desktop/test123',mode='r',encoding='utf-8') data=f.read() print(data)