摘要: fopen = open("filename.txt", "r");a = [];b = [];str = fopen.readline()a.append(str.split(' ')[0]);if len(str.split(' ')) > 2:b.append(str.split(' ')[2])else:b.append(str.split(' ')[1])while ( str != '' ):print strstr = fopen.readline() i 阅读全文
posted @ 2011-12-02 15:55 greencolor 阅读(154) 评论(0) 推荐(0) 编辑