This topic created in 4395 days ago, the information mentioned may be changed or developed.
self.union_items_new_cOntent= {}
for line in self.union_items_new_fd.readlines():
line = line.strip()
if (line == "" or cmp(line[0], "#") == 0):
continue
list = line.split('\t')
assert(list[0] != "")
goodsid = int(list[0].strip())
self.union_items_new_content[goodsid] = list
5 replies 1970-01-01 08:00:00 +08:00  | | 1 linzhi Apr 20, 2014 缩进 没处理好。。 |
 | | 2 halfcrazy Apr 20, 2014 lines=[line.strip().split("\t") for line in open('file') if line !="" and line[0]!="#"] |
 | | 5 gfreezy Apr 21, 2014 `for line in self.union_items_new_fd.readlines():`是一次读取全部的行吧。
`for line in self.union_items_new_fd:` |