python 之读取文件

#python 读取文件
def main() :
with open(‘test1.txt’,‘r’ ,encoding= ‘utf-8’)as f:
print(f.read())
if name == ‘main’:
main()

猜你喜欢

转载自blog.csdn.net/HAHH404/article/details/106524855
今日推荐