07-01-29.非常非常初级的小程序--SQL分析

stephen chan <[email protected]>

   1 #Write DD Document from SQL,Small Script Just test.
   2 file1r=open("E:\JGGZ_Table_script.sql","r")   #读文件1内容
   3 file1w=open("E:\JGGZ_Table_script_dd.tex","w") #写入文件2,文件2是自己创建的,初为空
   4 i=0
   5 for line in file1r.readlines():
   6     if not(line.find("(") | line.find(")")):
   7         line=''
   8     else:
   9         pass
  10     i+=1
  11     print i,
  12     print ".",
  13     print line
  14 file1r.close()
  15 file1w.close()