Browse Source

生成指定数据

yufeng0528 2 years ago
parent
commit
25055afea1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      bbztx/get_data.py

+ 5 - 0
bbztx/get_data.py

@@ -178,7 +178,12 @@ def ge_test():
178 178
     new_attr_list = to_a1(attr_list)
179 179
     to_file(new_attr_list, "test_data")
180 180
 
181
+def ge_aid(aid):
182
+    attr_list = get_articles("a.aid='%s' " % (aid), "limit 1")
183
+    new_attr_list = to_a1(attr_list)
184
+    to_file(new_attr_list, "test_data_aid")
181 185
 
182 186
 if __name__ == '__main__':
183 187
     # ge_train()
184 188
     ge_test()
189
+    ge_aid("7f5c222d-d1c8-4524-821c-43ab0078e139")