weixin_51443598的博客with open('Jogging.txt', 'a') as month_file: # 提取后的数据文件 for line in list1: s = (line) month_file.write(s) 数据集:WISDM.txt 链接:https://pan.baidu.com/s/1VjttqJLRkG8BceWjwm7VKQ 提取码:ix69
msw521sg的博客/usr/bin/env python # -*- coding: utf-8 -*- b = [ 'a1' , 'a2' ] with open ( '1.txt' , 'r' ) as f : a = [ ] lines = f . readlines ( ) print ( lines [ 0 ] ) for x in ...