path="C:\\Users\Administrator\\Desktop\\SQlite\\SQLiteStudio\\xxqg.txt"
# 读取文件里面每一行
with open(path) as f:
line = f.readline()
while line:
print(line)
第二种方式
import sys
path="C:\\Users\Administrator\\Desktop\\SQlite\\SQLiteStudio\\aabb.txt"
# 读取文件里面每一行
result=[]
with open(path,'r') as f:
for line in f:
print(line)