def CirculationList(ReaDinG): for ReaDLine in ReaDinG: ReaDList = ReaDLine.strip("\n").split() print(ReaDList) ##读取数据列表 ReaDing = open("file_1.txt","r",encoding="utf-8") ReaDinG = ReaDing.readlines() CirculationList(ReaDinG) ReaDing.close()
def CirculationList(ReaDinG): for ReaDLine in ReaDinG: ReaDList = ReaDLine.strip("\n").split() print(ReaDList) ##读取数据列表 ReaDing = open("file_1.txt","r",encoding="utf-8") ReaDinG = ReaDing.readlines() CirculationList(ReaDinG) ReaDing.close()
转载于:https://www.cnblogs.com/ArtisticMonk/p/8921732.html