Python笔记--读取txt文本中的内容为数组

def getTxtCon():
    with open("data.txt", "r",encoding='UTF-8') as f:
        return f.readlines()

你可能感兴趣的:(python)