python进行mysql多条件查询
sql = "select * from table where 1 = 1 "
id_list_in为字符串
sql += " and id in (%s)" % ','.join(["'%s'" % id for id in id_list_in])
name_in为字符串
sql += " and name like '%s%%%%'" % (name_in)
pandas大数据处理技巧
Python向hdfs写入文件与hadoop命令向hdfs写入文件