基础 filename="test.txt" f = open(filename,"r") print(f) 转载于:https://www.cnblogs.com/lqerio/p/11155365.html